incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r993111 - /sling/trunk/bundles/auth/form/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java
Date Mon, 06 Sep 2010 17:45:18 GMT
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);



Mime
View raw message