You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "ctubbsii (via GitHub)" <gi...@apache.org> on 2023/06/26 20:59:49 UTC

[GitHub] [accumulo] ctubbsii commented on a diff in pull request #3544: Add secure random to LazySingletons

ctubbsii commented on code in PR #3544:
URL: https://github.com/apache/accumulo/pull/3544#discussion_r1242751259


##########
core/src/main/java/org/apache/accumulo/core/util/LazySingletons.java:
##########
@@ -37,4 +38,6 @@ private LazySingletons() {}
    */
   public static final Supplier<Gson> GSON = Suppliers.memoize(Gson::new);
 
+  public static final Supplier<SecureRandom> SECURE_RANDOM = Suppliers.memoize(SecureRandom::new);

Review Comment:
   ```suggestion
     /**
      * A SecureRandom instance created with the default constructor.
      */
     public static final Supplier<SecureRandom> SECURE_RANDOM = Suppliers.memoize(SecureRandom::new);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org