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.56 by jsr166, Tue Oct 3 22:27:04 2017 UTC vs.
Revision 1.57 by jsr166, Wed Jan 10 13:52:06 2018 UTC

# Line 38 | Line 38 | import jdk.internal.misc.VM;
38   * {@code ThreadLocalRandom.current().nextX(...)} (where
39   * {@code X} is {@code Int}, {@code Long}, etc).
40   * When all usages are of this form, it is never possible to
41 < * accidently share a {@code ThreadLocalRandom} across multiple threads.
41 > * accidentally share a {@code ThreadLocalRandom} across multiple threads.
42   *
43   * <p>This class also provides additional commonly used bounded random
44   * generation methods.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines