"do prng need to be thread safe?" Code Answer

4

prngs are meticulously constructed tools -- frankly, if race conditions and threading bugs were a good prng, the implementation would be written that way.

the problem with adding threading bugs to increase randomness is that it's an unstudied change to the generator. existing secure algorithms and implementations have been exhaustively tested; if you want to try an unsafe variant, you'll need to do the statistical grunt work to show that it's at least as random as a normal prng.

By Yassir Ennazk on January 15 2022

Answers related to “do prng need to be thread safe?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.