mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-28 15:51:02 +00:00
8282551: Properly initialize L32X64MixRandom state
Reviewed-by: jlaskey
This commit is contained in:
parent
234c17e8ff
commit
ce18ff8527
@ -155,6 +155,8 @@ public final class L32X64MixRandom extends AbstractSplittableWithBrineGenerator
|
||||
// Force a to be odd.
|
||||
this.a = a | 1;
|
||||
this.s = s;
|
||||
this.x0 = x0;
|
||||
this.x1 = x1;
|
||||
// If x0 and x1 are both zero, we must choose nonzero values.
|
||||
if ((x0 | x1) == 0) {
|
||||
int v = s;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user