This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/27908] VMSecureRandom generateSeed infinite loop? (Regression)
- From: "csm at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 6 Jun 2006 20:14:44 -0000
- Subject: [Bug libgcj/27908] VMSecureRandom generateSeed infinite loop? (Regression)
- References: <bug-27908-7936@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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