There could easily be a conflict as your random generation isn't very high resolution.
|
opts.filename = 'meme-' + randomInt(100, 999) + '.gif'; |
I would use randomInt(100, 99999) and also check if the image exists before writing and generate a new number if it does. You never want to accidentally overwrite an existing image.
There could easily be a conflict as your random generation isn't very high resolution.
text-meme/index.js
Line 56 in 1e513e8
I would use
randomInt(100, 99999)and also check if the image exists before writing and generate a new number if it does. You never want to accidentally overwrite an existing image.