8201634: Random seedUniquifier uses incorrect LCG
Correct typo in constant from L'Ecuyer Reviewed-by: dl, psandoz
This commit is contained in:
parent
bb34027591
commit
526a2dbe28
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user