5 ms·
The advice on this page is accurate and in line with what cryptography experts will recommend. That said, if you're looking for more of the how and less of the
by CiPHPerCoder 10y ago
The advice on this page is accurate and in line with what cryptography experts will recommend.
That said, if you're looking for more of the how and less of the why: https://paragonie.com/blog/2016/05/how-generate-secure-random-numbers-in-various-programming-languages https://paragonie.com/blog/2016/05/how-generate-secure-rando...
Contains snippets and recommendations for C/C++, Erlang, Go, Java, (Browser) JavaScript, .NET, Node.js, PHP, Python, Ruby, and Rust.
- Dylan16807 10y agoThough you're answering a different (more relevant, but different) "how". That's "how do I find a library for random numbers". The article is focused on getting random numbers directly from the Linux kernel, and the "how" there is invoking getrandom(buffer, len, 0).