This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/27908] VMSecureRandom generateSeed infinite loop? (Regression)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]