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.39 by jsr166, Sat Jan 2 02:27:03 2016 UTC vs.
Revision 1.40 by jsr166, Fri Feb 19 03:39:15 2016 UTC

# Line 105 | Line 105 | public class ThreadLocalRandom extends R
105      private static final AtomicLong seeder = new AtomicLong(initialSeed());
106  
107      private static long initialSeed() {
108 <        java.security.PrivilegedAction<Boolean> action =
109 <            () -> Boolean.getBoolean("java.util.secureRandomSeed");
110 <        if (java.security.AccessController.doPrivileged(action)) {
108 >        if (java.security.AccessController.doPrivileged(
109 >            new java.security.PrivilegedAction<Boolean>() {
110 >                public Boolean run() {
111 >                    return Boolean.getBoolean("java.util.secureRandomSeed");
112 >                }})) {
113              byte[] seedBytes = java.security.SecureRandom.getSeed(8);
114              long s = (long)seedBytes[0] & 0xffL;
115              for (int i = 1; i < 8; ++i)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines