I added an addendum to the show notes for the #MilkSad episode, to explain that Mersenne Twister didn't become unsafe at some point: it was never designed to be used in cryptographic applications. But it's fine for its intended purposes (like Monte Carlo simulations).
Sjors Provoost
sjors@sprovoost.nl
If you find this stuff interesting, you should read (some of) the Serious Cryptography book:
nostarch.com/seriouscryptoSerious Cryptography, 2nd EditionThe bestselling introduction to modern cryptography, thoroughly revised and updatedIt wouldn't hurt if cppreference.com would be more clear about this. Instead of "It produces high quality unsigned integer random numbers" , it should say "high quality, but not cryptographically secure, ".
en.cppreference.com/w/cpp/numeric/random/mersenne_twister_e…
It doesn't help that it links to a standards document which in its Requirements section mentions:
en.cppreference.com/w/cpp/numeric/random/mersenne_twister_enginestd::mersenne_twister_engine - cppreference.com"true" non-deterministic random numbers (for cryptography)open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1398.html Only if you read the document carefully you'll learn why that requirement was pushed to the developer.
Oh looks, it's a wiki: en.cppreference.com/mwiki/index.php?title=cpp%2Fnumeric%2Fr…
Just read this book recently, very recommended 🤙
