8282551: Properly initialize L32X64MixRandom state

Reviewed-by: jlaskey
This commit is contained in:
Devin Smith 2022-03-02 16:41:13 +00:00 committed by Jim Laskey
parent 234c17e8ff
commit ce18ff8527

View File

@ -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;