public class RandomImpl extends SecureRandomSpi
Modifier and Type | Field and Description |
---|---|
static boolean |
runEngineGenerateSeed |
static boolean |
runEngineNextBytes |
static boolean |
runEngineSetSeed |
Constructor and Description |
---|
RandomImpl() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
engineGenerateSeed(int numBytes)
Generates and returns the specified number of seed bytes, computed using
the seed generation algorithm used by this
SecureRandomSpi . |
protected void |
engineNextBytes(byte[] bytes)
Generates and stores random bytes in the given
byte[] for each
array element. |
protected void |
engineSetSeed(byte[] seed)
Reseeds this
SecureRandomSpi instance with the specified seed . |
public static boolean runEngineGenerateSeed
public static boolean runEngineNextBytes
public static boolean runEngineSetSeed
protected void engineSetSeed(byte[] seed)
SecureRandomSpi
SecureRandomSpi
instance with the specified seed
. The seed of this SecureRandomSpi
instance is supplemented,
not replaced.engineSetSeed
in class SecureRandomSpi
seed
- the new seed.protected void engineNextBytes(byte[] bytes)
SecureRandomSpi
byte[]
for each
array element.engineNextBytes
in class SecureRandomSpi
bytes
- the byte[]
to be filled with random bytes.protected byte[] engineGenerateSeed(int numBytes)
SecureRandomSpi
SecureRandomSpi
.engineGenerateSeed
in class SecureRandomSpi
numBytes
- the number of seed bytes.