/libcore/luni/src/test/java/libcore/java/util/ |
D | RandomTest.java | 48 Random rand = new Random(0); in test_ints$() local 51 rands[i] = rand.nextInt(); in test_ints$() 61 Random rand = new Random(0); in test_ints$L() local 64 rands[i] = rand.nextInt(); in test_ints$L() 81 Random rand = new Random(0); in test_ints$II() local 84 rands[i] = rand.nextInt(bound - origin) + origin; in test_ints$II() 100 Random rand = new Random(0); in test_ints$LII() local 103 rands[i] = rand.nextInt(bound - origin) + origin; in test_ints$LII() 123 Random rand = new Random(0); in test_longs$() local 126 rands[i] = rand.nextLong(); in test_longs$() [all …]
|
D | ArraysTest.java | 269 Random rand = new Random(0); in parallelPrefix$I() local 272 list[i] = rand.nextInt() % 1000; // Prevent overflow in parallelPrefix$I() 304 Random rand = new Random(0); in parallelPrefix$III() local 307 list[i] = rand.nextInt() % 1000; // Prevent overflow in parallelPrefix$III() 346 Random rand = new Random(0); in parallelPrefix$L() local 349 list[i] = rand.nextLong() % 1000000; // Prevent overflow in parallelPrefix$L() 381 Random rand = new Random(0); in parallelPrefix$LII() local 384 list[i] = rand.nextLong() % 1000000; // Prevent overflow in parallelPrefix$LII() 423 Random rand = new Random(0); in parallelPrefix$D() local 426 list[i] = rand.nextDouble() * 1000; in parallelPrefix$D() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | OldBigIntegerTest.java | 31 Random rand = new Random(); field in OldBigIntegerTest 50 bi = new BigInteger(70, rand); in test_ConstructorILjava_util_Random() 51 bi2 = new BigInteger(70, rand); in test_ConstructorILjava_util_Random() 57 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random() 72 BigInteger bi1 = new BigInteger(10, 5, rand); in test_ConstructorIILjava_util_Random() 73 BigInteger bi2 = new BigInteger(10, 5, rand); in test_ConstructorIILjava_util_Random() 79 Random rand = new Random(); in test_ConstructorIILjava_util_Random() local 85 bi = new BigInteger(i, c, rand); // Create BigInteger in test_ConstructorIILjava_util_Random() 125 bi = new BigInteger(20, 20, rand); in test_isProbablePrimeI() 147 bi = BigInteger.valueOf(rand.nextInt(1000000)).multiply( in test_isProbablePrimeI() [all …]
|
D | BigIntegerTest.java | 48 Random rand = new Random(); field in BigIntegerTest 87 bi = new BigInteger(70, rand); in test_ConstructorILjava_util_Random() 88 bi2 = new BigInteger(70, rand); in test_ConstructorILjava_util_Random() 95 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random() 168 bi = new BigInteger(20, 20, rand); in test_isProbablePrimeI() 190 bi = BigInteger.valueOf(rand.nextInt(1000000)).multiply( in test_isProbablePrimeI() 191 BigInteger.valueOf(rand.nextInt(1000000))); in test_isProbablePrimeI() 198 bi = new BigInteger(70, rand).multiply(new BigInteger(70, rand)); in test_isProbablePrimeI()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 89 Random rand = new Random(); in test_Constructor_ILjava_util_Random() local 92 b = new BigInteger(128, rand); in test_Constructor_ILjava_util_Random() 95 b = new BigInteger(16, rand); in test_Constructor_ILjava_util_Random() 98 b = new BigInteger(5, rand); in test_Constructor_ILjava_util_Random() 104 Random rand = new Random(); in test_Constructor_IILjava_util_Random() local 107 b = new BigInteger(128, 100, rand); in test_Constructor_IILjava_util_Random() 111 b = new BigInteger(16, 100, rand); in test_Constructor_IILjava_util_Random() 115 b = new BigInteger(5, 100, rand); in test_Constructor_IILjava_util_Random() 125 b = new BigInteger(2, 100, rand); in test_Constructor_IILjava_util_Random() 143 Random rand = new Random(); in test_probablePrime() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RandomTest.java | 309 Random rand = new Random(0x8123aea6267e055dL); in testSerializationCompatibility() local 310 rand.nextGaussian(); in testSerializationCompatibility() 312 SerializationTest.verifyGolden(this, rand, comparator); in testSerializationCompatibility() 314 rand = new Random(0x8123aea6267e055dL); in testSerializationCompatibility() 315 rand.nextGaussian(); in testSerializationCompatibility() 316 SerializationTest.verifySelf(rand, comparator); in testSerializationCompatibility()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandomTest.java | 317 final AtomicLong rand = new AtomicLong(); 328 rand.set(current.nextLong()); 334 firstRand = rand.get(); 340 if (firstRand != rand.get())
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ThreadLocalRandomTest.java | 384 final AtomicLong rand = new AtomicLong(); 395 rand.set(current.nextLong()); 401 firstRand = rand.get(); 407 if (firstRand != rand.get())
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 44 static final Random rand = new Random(); field in FileTimeTest 117 for (int i=0; i<100; i++) { to(rand.nextLong(), unit); } in main() 126 long value = rand.nextLong(); in main() 156 long v = rand.nextLong(); in main() 158 Instant instant = Instant.ofEpochSecond(secs, rand.nextInt(1000_000_000)); in main()
|
/libcore/support/src/test/java/tests/resources/x509/ |
D | default.cnf | 95 RANDFILE = $dir/private/.rand # private random number file
|