Hacker News new | ask | show | jobs
by ciupicri 1469 days ago
From 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...

2 comments

Like I said, ancient PRNGs written by confused people.
On current day Linux, /dev/random will only block during bootup, never after it has once started.