Skip to content

Commit 37bfc6e

Browse files
committed
Javadoc
[LANG-1807] Make private static variables final in RandomUtils and fix the Javadoc for the insecure() methods in both RandomUtils and RandomStringUtils
1 parent ed9d43d commit 37bfc6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/org/apache/commons/lang3/RandomStringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ public class RandomStringUtils {
104104

105105
/**
106106
* Gets the singleton instance based on {@link ThreadLocalRandom#current()}; <b>which is not cryptographically
107-
* secure</b>; use {@link #secure()} to use an algorithms/providers specified in the
108-
* {@code securerandom.strongAlgorithms} {@link Security} property.
107+
* secure</b>; for more secure processing use {@link #secure()} or {@link #secureStrong()}.
109108
* <p>
110109
* The method {@link ThreadLocalRandom#current()} is called on-demand.
111110
* </p>
112111
*
113112
* @return the singleton instance based on {@link ThreadLocalRandom#current()}.
114113
* @see ThreadLocalRandom#current()
115114
* @see #secure()
115+
* @see #secureStrong()
116116
* @since 3.16.0
117117
*/
118118
public static RandomStringUtils insecure() {

src/main/java/org/apache/commons/lang3/RandomUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ public class RandomUtils {
8888

8989
/**
9090
* Gets the singleton instance based on {@link ThreadLocalRandom#current()}; <b>which is not cryptographically
91-
* secure</b>; use {@link #secure()} to use an algorithms/providers specified in the
92-
* {@code securerandom.strongAlgorithms} {@link Security} property.
91+
* secure</b>; for more secure processing use {@link #secure()} or {@link #secureStrong()}.
9392
* <p>
9493
* The method {@link ThreadLocalRandom#current()} is called on-demand.
9594
* </p>
9695
*
9796
* @return the singleton instance based on {@link ThreadLocalRandom#current()}.
9897
* @see ThreadLocalRandom#current()
9998
* @see #secure()
99+
* @see #secureStrong()
100100
* @since 3.17.0
101101
*/
102102
public static RandomUtils insecure() {

0 commit comments

Comments
 (0)