# | Line 455 | Line 455 | public class ThreadLocalRandom extends R | |
---|---|---|
455 | if (!(bound > 0.0)) | |
456 | throw new IllegalArgumentException(BadBound); | |
457 | double result = (mix64(nextSeed()) >>> 11) * DOUBLE_UNIT * bound; | |
458 | < | return (result < bound) ? result : // correct for rounding |
458 | > | return (result < bound) ? result : // correct for rounding |
459 | Double.longBitsToDouble(Double.doubleToLongBits(bound) - 1); | |
460 | } | |
461 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |