Improve default seed initialization #1333
Labels
c: bug
Something isn't working
good first issue
Good for newcomers
p: 2-high
Fix main branch
s: accepted
Accepted feature / Confirmed bug
Milestone
To avoid issues like this #1324 (comment) where the faker instance is initialized by multiple threads in parallel (thus using the same timestamp in the seed)
faker/src/modules/mersenne/index.ts
Line 11 in cc18b22
The seed initialization should either take a more precise time source or add a random element (in the hope that this returns a different value per thread).
The text was updated successfully, but these errors were encountered: