public final class HelixSecureRandom extends SecureRandomSpi
Constructor and Description |
---|
HelixSecureRandom()
Creates a new HelixSecureRandom and performs the provider
self-integrity check.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
engineGenerateSeed(int numBytes)
Returns the specified number of pseudo-random seed bytes.
|
protected void |
engineNextBytes(byte[] bytes)
Generates a user-specified number of random bytes.
|
protected void |
engineSetSeed(byte[] seed)
(Re-)Seeds this pseudo-random number generator.
|
public HelixSecureRandom()
protected byte[] engineGenerateSeed(int numBytes)
engineGenerateSeed
in class SecureRandomSpi
numBytes
- the number of seed bytes to generate (positive whole number or
zero)SecureRandomSpi.engineGenerateSeed(int)
protected void engineNextBytes(byte[] bytes)
engineNextBytes
in class SecureRandomSpi
bytes
- the array to be filled in with random bytesSecureRandomSpi.engineNextBytes(byte[])
protected void engineSetSeed(byte[] seed)
The seed argument is used to supplement (not replace) the existing seed so that repeated calls do not reduce randomness.
If seed is empty, this method will effectively use the internal seeding mechanism to see the PRNG.
engineSetSeed
in class SecureRandomSpi
seed
- new bytes used to supplement the existing seed valueSecureRandomSpi.engineSetSeed(byte[])
Copyright © 2010-2015 Matthew Zipay. All Rights Reserved.