8201634: Random seedUniquifier uses incorrect LCG
authormartin
Wed, 02 May 2018 11:20:20 -0700
changeset 49954 deefa2120bc4
parent 49953 a17d59ffca47
child 49955 ea246151be08
8201634: Random seedUniquifier uses incorrect LCG Summary: Correct typo in constant from L'Ecuyer Reviewed-by: dl, psandoz
src/java.base/share/classes/java/util/Random.java
--- a/src/java.base/share/classes/java/util/Random.java	Wed May 02 11:19:12 2018 -0700
+++ b/src/java.base/share/classes/java/util/Random.java	Wed May 02 11:20:20 2018 -0700
@@ -110,7 +110,7 @@
         // Different Sizes and Good Lattice Structure", 1999
         for (;;) {
             long current = seedUniquifier.get();
-            long next = current * 181783497276652981L;
+            long next = current * 1181783497276652981L;
             if (seedUniquifier.compareAndSet(current, next))
                 return next;
         }