You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/09/24 11:02:56 UTC

[commons-rng] 04/04: Update Javadoc stating that generated seeds are limited to max 128.

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit a76c4b2493f249f83b06d559a352809895431ce1
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Sep 24 12:02:48 2019 +0100

    Update Javadoc stating that generated seeds are limited to max 128.
---
 .../src/main/java/org/apache/commons/rng/simple/RandomSource.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/RandomSource.java b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/RandomSource.java
index 9ead40c..787fed1 100644
--- a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/RandomSource.java
+++ b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/RandomSource.java
@@ -549,8 +549,9 @@ public enum RandomSource {
      *   when the array contains more bits than the state of the generator.
      *  </li>
      *  <li>
-     *   When the {@code seed} is {@code null}, a seed of the correct type
-     *   and size (for array seeds) will be generated.
+     *   When the {@code seed} is {@code null}, a seed of the native type
+     *   will be generated. If the native type is an array, the generated
+     *   size is limited a maximum of 128.
      *  </li>
      * </ul>
      *