This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.auth.form-1.0.2 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-auth-form.git
commit 4d1d59e2548ff0c52e0539f9b45a3c3c7470d9be Author: Felix Meschberger <[email protected]> AuthorDate: Mon Sep 6 17:45:17 2010 +0000 SLING-1729 Emit a log message if regular SecureRandom seeding is used git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/auth/form@993111 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/sling/auth/form/impl/TokenStore.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java b/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java index d79e686..e06ff82 100644 --- a/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java +++ b/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java @@ -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); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
