pdffillerjs / pdffiller

Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.
MIT License
286 stars 113 forks source link

Added random alphanumeric sequence to the temp FDF file name #42

Closed anperez78 closed 7 years ago

anperez78 commented 7 years ago

Using just the timestamp to generate a temporary file name on a multi-threaded environment can be risky. This MR is just adding a random alphanumeric sequence in order to improve the "uniqueness" of the file name and to avoid threads clashing when generating FDF files.

anperez78 commented 7 years ago

Hi guys, any feedback on this, please? :)

davychiu commented 7 years ago

@johntayl , could you please release this change to NPM?

BTW. issue #2 referenced this change coincidentally a year ago or @whitef0x0 is a time traveller...