Home
last modified time | relevance | path

Searched refs:setSeed (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/
DOldSHA1PRNGSecureRandomTest.java129 sr.setSeed(myBytes); in testNextBytesbyteArray02()
130 sr2.setSeed(myBytes); in testNextBytesbyteArray02()
288 sr1.setSeed(myBytes); in testNextBytesbyteArray04()
289 sr2.setSeed(myBytes); in testNextBytesbyteArray04()
313 sr.setSeed(null); in testSetSeedbyteArray01()
335 sr.setSeed(seed); in testSetSeedbyteArray02()
336 sr.setSeed(seed); in testSetSeedbyteArray02()
337 sr2.setSeed(seed); in testSetSeedbyteArray02()
373 sr.setSeed(seed); in testSetSeedbyteArray03()
374 sr.setSeed(new byte[0]); in testSetSeedbyteArray03()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRandomTest.java50 r.setSeed(1337); in test_setSeed()
52 r2.setSeed(1337); in test_setSeed()
239 random1.setSeed(1337); in test_setSeedJ()
240 random2.setSeed(1337); in test_setSeedJ()
241 random3.setSeed(5000); in test_setSeedJ()
254 random3.setSeed(1337); in test_setSeedJ()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java214 new SecureRandom().setSeed(SEED_BYTES); in test_setSeed$B()
220 new SecureRandom().setSeed(null); in test_setSeed$B()
233 new SecureRandom().setSeed(SEED_VALUE); in test_setSeedJ()
239 new SecureRandom().setSeed(-1); in test_setSeedJ()
303 sr1.setSeed(seed1); in testSetSeedComplimentsAfterFirstRandomNumber()
/libcore/ojluni/src/main/java/java/security/
DSecureRandom.java203 private void getDefaultPRNG(boolean setSeed, byte[] seed) { in getDefaultPRNG() argument
213 if (setSeed) { in getDefaultPRNG()
435 synchronized public void setSeed(byte[] seed) { in setSeed() method in SecureRandom
453 public void setSeed(long seed) { in setSeed() method in SecureRandom
/libcore/luni/src/test/java/libcore/java/security/
DSecureRandomTest.java85 sr.setSeed(STATIC_SEED_BYTES); in test_SecureRandom()
90 sr.setSeed(STATIC_SEED_LONG); in test_SecureRandom()
/libcore/luni/src/test/java/tests/java/security/
DSecureRandomTest.java73 sr.setSeed(12345); in testSetSeedlong()
252 sr.setSeed(b); in testSetSeedbyteArray()
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java67 random.setSeed(System.currentTimeMillis()+counter); in getRandomBytes()
/libcore/benchmarks/src/benchmarks/regression/
DCollectionsBenchmark.java72 random.setSeed(0); in buildList()
/libcore/ojluni/src/main/java/java/util/
DRandom.java141 setSeed(seed); in Random()
168 synchronized public void setSeed(long seed) { in setSeed() method in Random
/libcore/ojluni/annotations/hiddenapi/java/util/
DRandom.java50 public synchronized void setSeed(long seed) { in setSeed() method in Random
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandomTest.java54 ThreadLocalRandom.current().setSeed(17); in testSetSeed()
/libcore/luni/src/test/java/libcore/java/util/
DRandomTest.java33 @Override public synchronized void setSeed(long seed) { state = Long.toString(seed); } in test_subclassing() method in RandomTest.MyRandom
/libcore/ojluni/src/main/java/java/lang/
DMath.java780 RandomNumberGeneratorHolder.randomNumberGenerator.setSeed(seed); in setRandomSeedInternal()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java183 public void setSeed(long seed) { in setSeed() method in ThreadLocalRandom