8201634: Random seedUniquifier uses incorrect LCG
Summary: Correct typo in constant from L'Ecuyer
Reviewed-by: dl, psandoz
--- 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;
}