public final class SRRandomBitsSource
extends oracle.security.crypto.core.RandomBitsSource
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SEED_SIZE |
Constructor and Description |
---|
SRRandomBitsSource(java.security.SecureRandom random) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
next(int bits) |
byte |
randomByte() |
byte[] |
randomBytes(byte[] bytes) |
void |
seed(byte[] seed) |
void |
seed(oracle.security.crypto.core.EntropySource es) |
public void seed(byte[] seed)
seed
in class oracle.security.crypto.core.RandomBitsSource
public void seed(oracle.security.crypto.core.EntropySource es)
seed
in class oracle.security.crypto.core.RandomBitsSource
public int next(int bits)
public byte randomByte()
randomByte
in class oracle.security.crypto.core.RandomBitsSource
public byte[] randomBytes(byte[] bytes)
randomBytes
in class oracle.security.crypto.core.RandomBitsSource
public void clear()
clear
in class oracle.security.crypto.core.RandomBitsSource