diff options
| author | Chris Chambers <[email protected]> | 2017-06-17 13:52:09 -0500 |
|---|---|---|
| committer | Marak <[email protected]> | 2017-09-08 16:21:00 -0400 |
| commit | 8a33cf0e7a57f8fe766034706d0230802788d1ff (patch) | |
| tree | 44c57f37cc3fe93ce8da113d565abe634e9536d8 /examples/node | |
| parent | 2ea9730a4a36af6db2333c8655ab9d4dcc6bc2d4 (diff) | |
| download | faker-8a33cf0e7a57f8fe766034706d0230802788d1ff.tar.xz faker-8a33cf0e7a57f8fe766034706d0230802788d1ff.zip | |
Update Random to create a per-instance copy of the RNG
Before this change, it appeared that multiple, independent Faker
instances were legal. But, when multiple instances were created, their
shared random number generators would overwrite each others' states.
After this change, each Random instance (and therefore each Faker
instance) has its own copy of the random number generator, ensuring that
calls to one Faker instance do not affect the stream of values generated
by another.
Diffstat (limited to 'examples/node')
0 files changed, 0 insertions, 0 deletions
