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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java (file contents):
Revision 1.90 by jsr166, Tue Jan 22 23:00:06 2013 UTC vs.
Revision 1.91 by dl, Wed Jan 23 18:40:30 2013 UTC

# Line 862 | Line 862 | public class ConcurrentSkipListMap<K,V>
862       * Pugh's "Skip List Cookbook", sec 3.4).
863       */
864      private int randomLevel() {
865 <        int x = ThreadLocalRandom.nextSecondarySeed();
865 >        //        int x = ThreadLocalRandom.nextSecondarySeed();
866 >        int x = ThreadLocalRandom.current().nextInt();
867          int level = 0;
868          if ((x & 0x80000001) == 0) { // test highest and lowest bits
869              do { ++level; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines