News for hackers. Stuff that matters.
Re:Ruby Bug: SecureRandom should try /dev/urandom first by jcranmer on Wednesday May 04, 2016 @01:45AM (#11626475)
I ran strace on both OpenJDK 7 and 8. It appears to open both /dev/random and /dev/urandom, but it only read from /dev/urandom. From reading the source code, it appears that /dev/random is used if you call SecureRandom::generateSeed, but /dev/urandom is used for SecureRandom::next.

Of course, you can change a whole heck of a lot of stuff by setting properties on the command line or changing $JAVA_HOME/lib/security/java.security.

Re:Ruby Bug: SecureRandom should try /dev/urandom first by Freaky on Wednesday May 04, 2016 @07:31AM (#11627588)
Yep, shouldn't have second-guessed myself. Teach me to comment at 4am.

http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/s...