TLDR · PROGRAMMING, DESIGN & DATA SCIENCE
NEED A PRNG? USE A CSPRNG
Summary from the TLDR newsletter
Developers should always use a Cryptographically Secure Pseudorandom Number Generator (CSPRNG) when choosing a Pseudorandom Number Generator. While people typically say to only use CSPRNGs when doing cryptography and need security against adversarial attackers, they are really the only thing that makes sense to use. This article talks about why developers should only use CSPRNGs by comparing them with other random number generation methods. CSPRNGs are better by definition as given the first n bits, there is no efficient algorithm that will predict the next bit with a success rate non-negligibly better than 50%.