Searched refs:ThreadLocalRandom (Results 1 – 14 of 14) sorted by relevance
9 import java.util.concurrent.ThreadLocalRandom;54 ThreadLocalRandom.current().setSeed(17); in testSetSeed()63 int f = ThreadLocalRandom.current().nextInt(); in testNextInt()65 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) in testNextInt()74 long f = ThreadLocalRandom.current().nextLong();76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)85 boolean f = ThreadLocalRandom.current().nextBoolean();87 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)96 float f = ThreadLocalRandom.current().nextFloat();98 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)[all …]
9 import java.util.concurrent.ThreadLocalRandom;43 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamSize()60 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamBounds()77 ThreadLocalRandom r = ThreadLocalRandom.current(); in testIntsCount()92 ThreadLocalRandom r = ThreadLocalRandom.current(); in testLongsCount()107 ThreadLocalRandom r = ThreadLocalRandom.current(); in testDoublesCount()122 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedInts()141 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedLongs()160 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedDoubles()179 ThreadLocalRandom r = ThreadLocalRandom.current(); in testUnsizedIntsCount()[all …]
20 import java.util.concurrent.ThreadLocalRandom;1240 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testSortTaskDemo()
82 public class ThreadLocalRandom extends Random { class146 private ThreadLocalRandom() { in ThreadLocalRandom() method in ThreadLocalRandom171 public static ThreadLocalRandom current() { in current()771 consumer.accept(ThreadLocalRandom.current().internalNextInt(origin, bound)); in tryAdvance()784 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()826 consumer.accept(ThreadLocalRandom.current().internalNextLong(origin, bound)); in tryAdvance()839 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()882 consumer.accept(ThreadLocalRandom.current().internalNextDouble(origin, bound)); in tryAdvance()895 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()1050 static final ThreadLocalRandom instance = new ThreadLocalRandom();
2270 int r = ThreadLocalRandom.nextSecondarySeed(); in findNonEmptyStealQueue()2531 if ((r = ThreadLocalRandom.getProbe()) == 0) { in externalPush()2532 ThreadLocalRandom.localInit(); in externalPush()2533 r = ThreadLocalRandom.getProbe(); in externalPush()2550 r = ThreadLocalRandom.advanceProbe(r); in externalPush()2575 int r = ThreadLocalRandom.getProbe(); in commonSubmitterQueue()2586 int r = ThreadLocalRandom.getProbe(); in tryExternalUnpush()2599 int r = ThreadLocalRandom.getProbe(); in externalHelpComplete()3056 int r = ThreadLocalRandom.nextSecondarySeed(); in pollSubmission()
697 ThreadLocalRandom randomYields = null; // bound if needed in awaitMatch()714 randomYields = ThreadLocalRandom.current(); in awaitMatch()
852 int rnd = ThreadLocalRandom.nextSecondarySeed(); in doPut()1376 int rnd = ThreadLocalRandom.current().nextInt(); in buildFromSorted()1481 int rnd = ThreadLocalRandom.current().nextInt(); in readObject()
2332 (a = as[ThreadLocalRandom.getProbe() & m]) == null || in addCount()2588 if ((h = ThreadLocalRandom.getProbe()) == 0) { in fullAddCount()2589 ThreadLocalRandom.localInit(); // force initialization in fullAddCount()2590 h = ThreadLocalRandom.getProbe(); in fullAddCount()2644 h = ThreadLocalRandom.advanceProbe(h); in fullAddCount()
1743 if (ThreadLocalRandom.nextSecondarySeed() >= 0) in waitingGet()
39 import java.util.concurrent.ThreadLocalRandom;226 ThreadLocalRandom.current(); // force initialization in longAccumulate()310 ThreadLocalRandom.current(); // force initialization in doubleAccumulate()
40 import java.util.concurrent.ThreadLocalRandom;75 oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
402 else if ((r = java.util.concurrent.ThreadLocalRandom.current().nextInt()) == 0) in nextSecondarySeed()
30 import java.util.concurrent.ThreadLocalRandom;
977 "ojluni/src/main/java/java/util/concurrent/ThreadLocalRandom.java",