Hacker News new | past | comments | ask | show | jobs | submit login

Luckily we have <random> in modern C++ these days. While they unfortunately left the default as implementation defined you can still manualy pick a good PRNG and random_device should give you good CSPRNG quality entropy in any sane implementation (although I wish they would formally say that it couldn't be based on a PRNG).

Also worth checking out: https://channel9.msdn.com/Events/GoingNative/2013/rand-Consi...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: