3 ms·
> Could this be upstreamed into the language's API? If a language is in use, and if people have written code that generates pseudorandom sequences based on an
by lutusp 1y ago
> Could this be upstreamed into the language's API?
If a language is in use, and if people have written code that generates pseudorandom sequences based on an initial seed, then no -- bad idea. Some programs rely on the same pseudorandom sequence for a given seed, and may fail otherwise.
- wtallis 1y agoThat really depends on whether the language's standard library API specifies that implementations will use a particular random number generator, or merely specifies that the RNG will have certain properties. If you're going to depend on reproducible, portable RNG behavior you need to get those random numbers from an API that guarantees a particular algorithm.