8201634: Random seedUniquifier uses incorrect LCG

Correct typo in constant from L'Ecuyer

Reviewed-by: dl, psandoz
This commit is contained in:
Martin Buchholz 2018-05-02 11:20:20 -07:00
parent bb34027591
commit 526a2dbe28

View File

@ -110,7 +110,7 @@ class Random implements java.io.Serializable {
// 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;
}