[Bug libgcj/27908] VMSecureRandom generateSeed infinite loop? (Regression)
csm at gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 6 20:14:00 GMT 2006
------- Comment #3 from csm at gnu dot org 2006-06-06 20:14 -------
Also, a good workaround (on Linux and other Unices) is to add this line to your
classpath.security file:
securerandom.source=file:/dev/random
This is generally a good idea. If you have available some file or device that
you can read random bytes out of, you should read that for PRNG seeds, instead
of using the fallback implementation in VMSecureRandom. Note that you can even
set that variable to an http URL, such as HotBits.
You can also use the system property `java.security.egd'. It, too, takes a URL.
For systems without /dev/random, you may have some luck with the entropy
gathering daemon, http://egd.sourceforge.net/.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27908
More information about the Java-prs
mailing list