From ff05d661dc690de4ad0dda606ee0388a0219e745 Mon Sep 17 00:00:00 2001
From: Rob Tompkins
Note. This class relies on an instance {@link Random}, and instances + * of {@link Random} are not cryptographically + * secure. Consider instead using {@link SecureRandom}, for which we have no utility class, + * to get a cryptographically secure pseudo-random number generator for use by + * security-sensitive applications.
+ * *#ThreadSafe#
* @since 1.0 */ diff --git a/src/main/java/org/apache/commons/lang3/RandomUtils.java b/src/main/java/org/apache/commons/lang3/RandomUtils.java index e9992930e..6a899dcda 100644 --- a/src/main/java/org/apache/commons/lang3/RandomUtils.java +++ b/src/main/java/org/apache/commons/lang3/RandomUtils.java @@ -16,11 +16,17 @@ */ package org.apache.commons.lang3; +import java.security.SecureRandom; import java.util.Random; /** *Utility library that supplements the standard {@link Random} class.
* + *Note. Instances of {@link Random} are not cryptographically + * secure. Consider instead using {@link SecureRandom}, for which we have no utility class, + * to get a cryptographically secure pseudo-random number generator for use by + * security-sensitive applications.
+ * * @since 3.3 */ public class RandomUtils {