public class SRRandomBitsSource extends RandomBitsSource
| Constructor and Description | 
|---|
SRRandomBitsSource()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clears out sensitive data pools within the PRNG. 
 | 
byte | 
randomByte()
Generate a random byte. 
 | 
byte[] | 
randomBytes(byte[] bytes)
Fill a byte array with random bytes. 
 | 
void | 
seed(byte[] seed)
Seed the PRNG with the supplied array of bytes. 
 | 
void | 
seed(EntropySource egs)
Seed the PRNG with a default number of bytes from the supplied entropy source. 
 | 
getDefault, getRNGTest, randomBigInt, randomBigInteger, seed, setDefaultpublic void clear()
RandomBitsSourceclear in class RandomBitsSourcepublic byte[] randomBytes(byte[] bytes)
randomBytes in class RandomBitsSourcepublic byte randomByte()
RandomBitsSourcerandomByte in class RandomBitsSourcepublic void seed(byte[] seed)
RandomBitsSourceseed in class RandomBitsSourcepublic void seed(EntropySource egs)
RandomBitsSourceNote that entropy source algorithms are frequently time and/or resource-intensive, which may cause significant delay before this method returns.
seed in class RandomBitsSource