# | 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; } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |