ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ThreadLocalRandom.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ThreadLocalRandom.java (file contents):
Revision 1.26 by jsr166, Sun May 25 02:33:45 2014 UTC vs.
Revision 1.27 by jsr166, Fri May 30 16:12:06 2014 UTC

# 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines