2 ms·
“Running out of entropy” is not possible; that’s a property of ancient PRNGs written by confused people. Even if your PRNG could run out of entropy, rdrand wou
by astrange 4y ago
“Running out of entropy” is not possible; that’s a property of ancient PRNGs written by confused people.
Even if your PRNG could run out of entropy, rdrand would give it all it needs.
- ciupicri 4y agoFrom the documentation for java.security.SecureRandom from Java 17 [1]: > Note: Depending on the implementation, the generateSeed, reseed and nextBytes methods may block as entropy is being gathered, for example, if the entropy source is /dev/random on various Unix-like operating systems. [1]: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/security/SecureRandom.html https://docs.oracle.com/en/java/javase/17/docs/api/java.base...
- yencabulator 4y agoOn current day Linux, /dev/random will only block during bootup, never after it has once started.
- astrange 4y agoLike I said, ancient PRNGs written by confused people.