/libcore/benchmarks/src/benchmarks/regression/ |
D | RandomBenchmark.java | 25 Random rng = new Random(); in timeNewRandom() local 26 rng.nextInt(); in timeNewRandom() 31 Random rng = new Random(); in timeReusedRandom() local 33 rng.nextInt(); in timeReusedRandom() 38 SecureRandom rng = new SecureRandom(); in timeReusedSecureRandom() local 40 rng.nextInt(); in timeReusedSecureRandom() 46 SecureRandom rng = new SecureRandom(); in timeNewSecureRandom() local 47 rng.nextInt(); in timeNewSecureRandom()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Random.java | 999 final Random rng; field in Random.RandomIntsSpliterator 1004 RandomIntsSpliterator(Random rng, long index, long fence, in RandomIntsSpliterator() argument 1006 this.rng = rng; this.index = index; this.fence = fence; in RandomIntsSpliterator() 1013 new RandomIntsSpliterator(rng, i, index = m, origin, bound); in trySplit() 1029 consumer.accept(rng.internalNextInt(origin, bound)); in tryAdvance() 1041 Random r = rng; in forEachRemaining() 1054 final Random rng; field in Random.RandomLongsSpliterator 1059 RandomLongsSpliterator(Random rng, long index, long fence, in RandomLongsSpliterator() argument 1061 this.rng = rng; this.index = index; this.fence = fence; in RandomLongsSpliterator() 1068 new RandomLongsSpliterator(rng, i, index = m, origin, bound); in trySplit() [all …]
|
D | SplittableRandom.java | 832 final SplittableRandom rng; field in SplittableRandom.RandomIntsSpliterator 837 RandomIntsSpliterator(SplittableRandom rng, long index, long fence, in RandomIntsSpliterator() argument 839 this.rng = rng; this.index = index; this.fence = fence; in RandomIntsSpliterator() 846 new RandomIntsSpliterator(rng.split(), i, index = m, origin, bound); in trySplit() 862 consumer.accept(rng.internalNextInt(origin, bound)); in tryAdvance() 874 SplittableRandom r = rng; in forEachRemaining() 888 final SplittableRandom rng; field in SplittableRandom.RandomLongsSpliterator 893 RandomLongsSpliterator(SplittableRandom rng, long index, long fence, in RandomLongsSpliterator() argument 895 this.rng = rng; this.index = index; this.fence = fence; in RandomLongsSpliterator() 902 new RandomLongsSpliterator(rng.split(), i, index = m, origin, bound); in trySplit() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 221 java.util.Random rng, long index, long fence, double origin, double bound) { in RandomDoublesSpliterator() argument 265 final java.util.Random rng; field in Random.RandomDoublesSpliterator 268 rng = null; 275 RandomIntsSpliterator(java.util.Random rng, long index, long fence, int origin, int bound) { in RandomIntsSpliterator() argument 319 final java.util.Random rng; field in Random.RandomIntsSpliterator 322 rng = null; 330 java.util.Random rng, long index, long fence, long origin, long bound) { in RandomLongsSpliterator() argument 374 final java.util.Random rng; field in Random.RandomLongsSpliterator 377 rng = null;
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 784 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining() local 786 consumer.accept(rng.internalNextInt(o, b)); in forEachRemaining() 839 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining() local 841 consumer.accept(rng.internalNextLong(o, b)); in forEachRemaining() 895 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining() local 897 consumer.accept(rng.internalNextDouble(o, b)); in forEachRemaining()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentLinkedDequeTest.java | 757 final Random rng = new Random(); in testIteratorRemove() local 759 int max = rng.nextInt(5) + 2; in testIteratorRemove() 760 int split = rng.nextInt(max - 1) + 1; in testIteratorRemove() 825 final Random rng = new Random(); in testDescendingIteratorRemove() local 827 int max = rng.nextInt(5) + 2; in testDescendingIteratorRemove() 828 int split = rng.nextInt(max - 1) + 1; in testDescendingIteratorRemove()
|
D | ArrayDequeTest.java | 785 final Random rng = new Random(); in testIteratorRemove() local 787 int max = rng.nextInt(5) + 2; in testIteratorRemove() 788 int split = rng.nextInt(max - 1) + 1; in testIteratorRemove() 853 final Random rng = new Random(); in testDescendingIteratorRemove() local 855 int max = rng.nextInt(5) + 2; in testDescendingIteratorRemove() 856 int split = rng.nextInt(max - 1) + 1; in testDescendingIteratorRemove()
|
D | ConcurrentHashMapTest.java | 186 Random rng = new Random(); in testMixedComparable() local 189 switch (rng.nextInt(4)) { in testMixedComparable()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ConcurrentLinkedDequeTest.java | 791 final Random rng = new Random(); in testIteratorRemove() local 793 int max = rng.nextInt(5) + 2; in testIteratorRemove() 794 int split = rng.nextInt(max - 1) + 1; in testIteratorRemove() 859 final Random rng = new Random(); in testDescendingIteratorRemove() local 861 int max = rng.nextInt(5) + 2; in testDescendingIteratorRemove() 862 int split = rng.nextInt(max - 1) + 1; in testDescendingIteratorRemove()
|
D | ArrayDequeTest.java | 842 final Random rng = new Random(); in testIteratorRemove() local 844 int max = rng.nextInt(5) + 2; in testIteratorRemove() 845 int split = rng.nextInt(max - 1) + 1; in testIteratorRemove() 910 final Random rng = new Random(); in testDescendingIteratorRemove() local 912 int max = rng.nextInt(5) + 2; in testDescendingIteratorRemove() 913 int split = rng.nextInt(max - 1) + 1; in testDescendingIteratorRemove()
|
D | ConcurrentHashMapTest.java | 211 Random rng = new Random(); in testMixedComparable() local 214 switch (rng.nextInt(4)) { in testMixedComparable()
|