@Test public void paramSelectorShift() { final List<Shift> shifts = singletonList(Shift.DEFAULT); final List<Param> params = Param.PARAMS; final ParamSelector selector = new ParamSelector(shifts, params); final byte[] seed = selector.seed(); for (Param param : params) { Assert.assertTrue(Arrays.equals(seed, selector.seed())); Assert.assertSame(selector.shift(), shifts.get(0)); Assert.assertSame(selector.param(), param); selector.next(); } for (Param param : params) { Assert.assertFalse(Arrays.equals(seed, selector.seed())); Assert.assertSame(selector.shift(), shifts.get(0)); Assert.assertSame(selector.param(), param); selector.next(); } }
@Override public boolean equals(final Object obj) { return obj instanceof XOR32ShiftRandom && ((XOR32ShiftRandom)obj)._x == _x && Objects.equals(((XOR32ShiftRandom)obj)._param, _param); }
XOR32ShiftRandom extends Random32 { @Override public boolean equals(final Object obj) { return obj instanceof XOR32ShiftRandom && ((XOR32ShiftRandom)obj)._x == _x && Objects.equals(((XOR32ShiftRandom)obj)._param, _param); } }
XOR32ShiftRandom extends Random32 { @Override public boolean equals(final Object obj) { return obj instanceof XOR32ShiftRandom && ((XOR32ShiftRandom)obj)._x == _x && Objects.equals(((XOR32ShiftRandom)obj)._param, _param); } XOR32ShiftRandom(
		final Shift shift,
		final Param param,
		final byte[] seed
	);  XOR32ShiftRandom(final Param param, final byte[] seed);  XOR32ShiftRandom(final Param param, final long seed);  XOR32ShiftRandom(final Param param);  XOR32ShiftRandom(final byte[] seed);  XOR32ShiftRandom(final long seed);  XOR32ShiftRandom(); }
XOR32ShiftRandom extends Random32 { @Override public boolean equals(final Object obj) { return obj instanceof XOR32ShiftRandom && ((XOR32ShiftRandom)obj)._x == _x && Objects.equals(((XOR32ShiftRandom)obj)._param, _param); } XOR32ShiftRandom(
		final Shift shift,
		final Param param,
		final byte[] seed
	);  XOR32ShiftRandom(final Param param, final byte[] seed);  XOR32ShiftRandom(final Param param, final long seed);  XOR32ShiftRandom(final Param param);  XOR32ShiftRandom(final byte[] seed);  XOR32ShiftRandom(final long seed);  XOR32ShiftRandom(); void setSeed(final byte[] seed); @Override synchronized void setSeed(final long seed); @Override int nextInt(); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj); static byte[] seedBytes(); }
XOR32ShiftRandom extends Random32 { @Override public boolean equals(final Object obj) { return obj instanceof XOR32ShiftRandom && ((XOR32ShiftRandom)obj)._x == _x && Objects.equals(((XOR32ShiftRandom)obj)._param, _param); } XOR32ShiftRandom(
		final Shift shift,
		final Param param,
		final byte[] seed
	);  XOR32ShiftRandom(final Param param, final byte[] seed);  XOR32ShiftRandom(final Param param, final long seed);  XOR32ShiftRandom(final Param param);  XOR32ShiftRandom(final byte[] seed);  XOR32ShiftRandom(final long seed);  XOR32ShiftRandom(); void setSeed(final byte[] seed); @Override synchronized void setSeed(final long seed); @Override int nextInt(); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj); static byte[] seedBytes(); static final int SEED_BYTES; }