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.54 by dl, Tue May 9 11:06:25 2017 UTC vs.
Revision 1.55 by jsr166, Sat May 13 17:37:21 2017 UTC

# Line 1066 | Line 1066 | public class ThreadLocalRandom extends R
1066      // at end of <clinit> to survive static initialization circularity
1067      static {
1068          String sec = VM.getSavedProperty("java.util.secureRandomSeed");
1069 <        if (sec != null && Boolean.parseBoolean(sec)) {
1069 >        if (Boolean.parseBoolean(sec)) {
1070              byte[] seedBytes = java.security.SecureRandom.getSeed(8);
1071              long s = (long)seedBytes[0] & 0xffL;
1072              for (int i = 1; i < 8; ++i)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines