| Modifier and Type | Field and Description |
|---|---|
| private final X931RNG | |
| private final boolean | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | generateSeed(int
the number of seed bytes to generate. numBytes)Overrides java. Returns the given number of seed bytes, computed using the seed generation algorithm that this class uses to seed itself. |
| public void | nextBytes(byte[]
the array to be filled in with random bytes. bytes)Overrides java. Overrides default java. Generates a user-specified number of random bytes. |
| public void | setSeed(byte[]
the seed. seed)Overrides java. Reseeds this random object with the given seed. |
| public void | setSeed(long
the seed. seed)Overrides java. Reseeds this random object, using the eight bytes contained
in the given |
| drbg | back to summary |
|---|---|
| private final X931RNG drbg | |
| predictionResistant | back to summary |
|---|---|
| private final boolean predictionResistant | |
| randomSource | back to summary |
|---|---|
| private final SecureRandom randomSource | |
| X931SecureRandom | back to summary |
|---|---|
| pack-priv X931SecureRandom(SecureRandom randomSource, X931RNG drbg, boolean predictionResistant) | |
| generateSeed | back to summary |
|---|---|
| public byte[] generateSeed(int numBytes) Overrides java. Doc from java. Returns the given number of seed bytes, computed using the seed generation algorithm that this class uses to seed itself. This call may be used to seed other random number generators.
| |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes) Overrides java. Overrides default java. Doc from java. Generates a user-specified number of random bytes.
| |
| setSeed | back to summary |
|---|---|
| public void setSeed(byte[] seed) Overrides java. Doc from java. Reseeds this random object with the given seed. The seed supplements, rather than replaces, the existing seed. Thus, repeated calls are guaranteed never to reduce randomness.
A PRNG
| |
| setSeed | back to summary |
|---|---|
| public void setSeed(long seed) Overrides java. Doc from java. Reseeds this random object, using the eight bytes contained
in the given
A PRNG This method is defined for compatibility with
| |