--- jsr166/src/main/java/util/SplittableRandom.java 2016/11/12 00:12:05 1.33 +++ jsr166/src/main/java/util/SplittableRandom.java 2016/11/13 03:36:50 1.36 @@ -530,18 +530,17 @@ public final class SplittableRandom { Double.longBitsToDouble(Double.doubleToLongBits(bound) - 1); } - /** + /** * Generates a pseudorandom number with the indicated number of - * bits. Unlike in superclass @{link Random}, this method is never - * internally called or used by any other publicly accessible - * method. + * low-order bits. Because this class has no subclasses, this + * method cannot be invoked or overridden. * * @param bits random bits * @return the next pseudorandom value from this random number * generator's sequence */ protected int next(int bits) { - return (int)(nextLong() >>> (64 - bits)); + return nextInt() >>> (32 - bits); } /**