2 ms·
If you’re trying to create a repeatable source of randomness for unit testing for example, you would create a new PRNG for each run, not try to recycle an exist
by hinkley 2y ago
If you’re trying to create a repeatable source of randomness for unit testing for example, you would create a new PRNG for each run, not try to recycle an existing instance. You’re making assumptions about state that aren’t supportable.
- Dylan16807 2y agoThe behavior you are describing is not setting a seed. A seed should wipe out all existing state. Adding entropy is a very different operation.