(docs) updates to documentation about SecureRandom

This commit is contained in:
Rob Tompkins 2019-04-03 20:43:17 -04:00
parent c20dcdadd4
commit ff05d661dc
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,7 @@
*/
package org.apache.commons.lang3;
import java.security.SecureRandom;
import java.util.Random;
/**
@ -33,6 +34,12 @@ import java.util.Random;
* <a href="https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/RandomStringGenerator.html">
* RandomStringGenerator</a> instead.</p>
*
* <p><em>Note.</em> 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.</p>
*
* <p>#ThreadSafe#</p>
* @since 1.0
*/

View File

@ -16,11 +16,17 @@
*/
package org.apache.commons.lang3;
import java.security.SecureRandom;
import java.util.Random;
/**
* <p>Utility library that supplements the standard {@link Random} class.</p>
*
* <p><em>Note.</em> 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.</p>
*
* @since 3.3
*/
public class RandomUtils {