JSSSecureRandom
public final class PK11SecureRandom extends java.lang.Object implements JSSSecureRandom
CryptoManager
Constructor | Description |
---|---|
PK11SecureRandom() |
Modifier and Type | Method | Description |
---|---|---|
void |
nextBytes(byte[] bytes) |
Retrieves random bytes and stores them in the given array.
|
void |
setSeed(byte[] seed) |
Seed the RNG with the given seed bytes.
|
void |
setSeed(long seed) |
Seed the RNG with the eight bytes contained in
seed . |
public void setSeed(byte[] seed)
JSSSecureRandom
setSeed
in interface JSSSecureRandom
seed
- Seed.public void setSeed(long seed)
JSSSecureRandom
seed
.setSeed
in interface JSSSecureRandom
seed
- Seed.public void nextBytes(byte[] bytes)
JSSSecureRandom
nextBytes
in interface JSSSecureRandom
bytes
- Array to store random bytes.