Searched refs:ThreadLocalRandom (Results 1 – 5 of 5) sorted by relevance
11 import java.util.concurrent.ThreadLocalRandom;40 ThreadLocalRandom.current().setSeed(17); in testSetSeed()49 int f = ThreadLocalRandom.current().nextInt(); in testNextInt()51 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) in testNextInt()60 long f = ThreadLocalRandom.current().nextLong();62 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)71 boolean f = ThreadLocalRandom.current().nextBoolean();73 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)82 float f = ThreadLocalRandom.current().nextFloat();84 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)[all …]
17 import java.util.concurrent.ThreadLocalRandom;1228 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testSortTaskDemo()
35 public class ThreadLocalRandom extends Random { class62 private static final ThreadLocal<ThreadLocalRandom> localRandom =63 new ThreadLocal<ThreadLocalRandom>() {64 protected ThreadLocalRandom initialValue() {65 return new ThreadLocalRandom();73 ThreadLocalRandom() { in ThreadLocalRandom() method in ThreadLocalRandom83 public static ThreadLocalRandom current() { in current()
672 ThreadLocalRandom randomYields = null; // bound if needed in awaitMatch()689 randomYields = ThreadLocalRandom.current(); in awaitMatch()
21 import java.util.concurrent.ThreadLocalRandom;1256 if (ThreadLocalRandom.current().nextInt() >= 0) in acquirePlock()2053 int r = ThreadLocalRandom.current().nextInt(); in findNonEmptyStealQueue()