php-phantomjs icon indicating copy to clipboard operation
php-phantomjs copied to clipboard

Identical tmp-file names when running multithreaded

Open sthum136 opened this issue 5 years ago • 1 comments

When running multithreaded, I get identical tmp-File names because mt_rand() in the StringUtils class returns identical values in the child processes.

sthum136 avatar Apr 09 '19 12:04 sthum136

Proposal: using random_int() instead of mt_rand()

sthum136 avatar Apr 09 '19 12:04 sthum136