Home
last modified time | relevance | path

Searched refs:NCALLS (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadLocalRandomTest.java61 static final int NCALLS = 10000; field in ThreadLocalRandomTest
108 for (i = 0; i < NCALLS; i++) { in testNext()
112 assertTrue(i < NCALLS); in testNext()
117 for (i = 0; i < NCALLS; i++) { in testNext()
122 assertTrue(i < NCALLS); in testNext()
132 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f)
134 assertTrue(i < NCALLS);
143 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
145 assertTrue(i < NCALLS);
154 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
[all …]
DSplittableRandomTest.java77 static final int NCALLS = 10000; field in SplittableRandomTest
96 while (i < NCALLS && sr.nextInt() == f) in testNextInt()
98 assertTrue(i < NCALLS); in testNextInt()
108 while (i < NCALLS && sr.nextLong() == f)
110 assertTrue(i < NCALLS);
120 while (i < NCALLS && sr.nextDouble() == f)
122 assertTrue(i < NCALLS);
147 while (i < NCALLS && sr.nextLong() == sc.nextLong())
149 assertTrue(i < NCALLS);
162 while (i < NCALLS && sr.nextLong() == sc.nextLong())
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandomTest.java38 static final int NCALLS = 10000; field in ThreadLocalRandomTest
65 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) in testNextInt()
67 assertTrue(i < NCALLS); in testNextInt()
76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
78 assertTrue(i < NCALLS);
87 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
89 assertTrue(i < NCALLS);
98 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
100 assertTrue(i < NCALLS);
109 while (i < NCALLS && ThreadLocalRandom.current().nextDouble() == f)
[all …]
/libcore/ojluni/src/test/java/util/Random/
DRandomTest.java57 static final int NCALLS = 10000; field in RandomTest
77 while (i < NCALLS && r.nextInt() == f) in testNextInt()
79 assertTrue(i < NCALLS); in testNextInt()
89 while (i < NCALLS && r.nextLong() == f)
91 assertTrue(i < NCALLS);
101 while (i < NCALLS && r.nextBoolean() == f)
103 assertTrue(i < NCALLS);
113 while (i < NCALLS && r.nextFloat() == f)
115 assertTrue(i < NCALLS);
125 while (i < NCALLS && r.nextDouble() == f)
[all …]