You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2010/09/06 19:45:18 UTC
svn commit: r993111 -
/sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java
Author: fmeschbe
Date: Mon Sep 6 17:45:17 2010
New Revision: 993111
URL: http://svn.apache.org/viewvc?rev=993111&view=rev
Log:
SLING-1729 Emit a log message if regular SecureRandom seeding is used
Modified:
sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java
Modified: sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java?rev=993111&r1=993110&r2=993111&view=diff
==============================================================================
--- sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java (original)
+++ sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java Mon Sep 6 17:45:17 2010
@@ -129,6 +129,13 @@ class TokenStore {
// warm up the crypto API
if (fastSeed) {
random.setSeed(getFastEntropy());
+ } else {
+ log.info("Seeding the secure random number generator can take "
+ + "up to several minutes on some operating systems depending "
+ + "upon environment factors. If this is a problem for you, "
+ + "set the system property 'java.security.egd' to "
+ + "'file:/dev/./urandom' or enable the Fast Seed Generator "
+ + "in the Web Console");
}
byte[] b = new byte[20];
random.nextBytes(b);