public final class GeneralSecureRandom
extends java.security.SecureRandom
Modifier and Type | Method and Description |
---|---|
byte[] |
generateSeed(int numBytes) |
java.lang.String |
getAlgorithm()
Return the algorithm name
|
int |
getBlockSize()
Return the block size of the underlying DRBG
|
void |
nextBytes(byte[] bytes) |
void |
nextBytes(byte[] bytes,
byte[] additionalInput) |
void |
reseed()
Force a reseed.
|
void |
reseed(byte[] additionalInput)
Force a reseed with additional input.
|
void |
setSeed(byte[] seed) |
void |
setSeed(long seed) |
getInstance, getInstance, getInstance, getInstanceStrong, getProvider, getSeed, next
public void setSeed(byte[] seed)
setSeed
in class java.security.SecureRandom
public void setSeed(long seed)
setSeed
in class java.security.SecureRandom
public java.lang.String getAlgorithm()
getAlgorithm
in class java.security.SecureRandom
public void nextBytes(byte[] bytes)
nextBytes
in class java.security.SecureRandom
public void nextBytes(byte[] bytes, byte[] additionalInput)
public byte[] generateSeed(int numBytes)
generateSeed
in class java.security.SecureRandom
public int getBlockSize()
public void reseed()
public void reseed(byte[] additionalInput)
additionalInput
- additional input to be used in conjunction with reseed.