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


The following commit(s) were added to refs/heads/master by this push:
     new 06fbb7d  Update Help message for the ThreadLocalRandom option
06fbb7d is described below

commit 06fbb7dfba8ccf51f83f5cc332c7864e77b8c2d5
Author: aherbert <[email protected]>
AuthorDate: Tue Jun 4 15:46:47 2019 +0100

    Update Help message for the ThreadLocalRandom option
---
 .../apache/commons/rng/examples/stress/StressTestCommand.java    | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java
 
b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java
index 7a6b20e..0209e62 100644
--- 
a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java
+++ 
b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/StressTestCommand.java
@@ -141,12 +141,11 @@ class StressTestCommand implements Callable<Void> {
 
     /**
      * Flag to indicate the output should be combined with output from 
ThreadLocalRandom.
-     *
-     * @see System#identityHashCode(Object)
      */
     @Option(names = {"--local-random"},
-            description = {"Combine the bits with ThreadLocalRandom (default: 
${DEFAULT-VALUE})."})
-    private boolean xorLocalRandom;
+            description = {"Combine the bits with ThreadLocalRandom (default: 
${DEFAULT-VALUE}).",
+                           "ThreadLocalRandom.current().nextInt() ^ 
rng.nextInt()."})
+    private boolean xorThreadLocalRandom;
 
     /** The flag to indicate a dry run. */
     @Option(names = {"--dry-run"},
@@ -415,7 +414,7 @@ class StressTestCommand implements Callable<Void> {
             if (xorHashCode) {
                 rng = RNGUtils.createHashCodeIntProvider(rng);
             }
-            if (xorLocalRandom) {
+            if (xorThreadLocalRandom) {
                 rng = RNGUtils.createThreadLocalRandomIntProvider(rng);
             }
             if (reverseBits) {

Reply via email to