public class AnsiRandom extends SecRandom
In addition to the seed, X9.17 defines that it shall use the current system time. That means, if you generate two instances of AnsiRandom, they will output a different pseudo random sequence even if you specified the same seed. A setI() method is defined to allow modification of that second seed value.
Constructor and Description |
---|
AnsiRandom()
Generate a new AnsiRandom with the specified seed.
|
Modifier and Type | Method and Description |
---|---|
void |
setI()
Set the I vector to the current time.
|
void |
setI(long time)
Set the I vector to the specified long.
|
getAlgorithm, getDefault, setDefault, setDefault, setSeed
generateSeed, getInstance, getInstance, getInstance, getProvider, getSeed, next, nextBytes, setSeed, setSeed
public AnsiRandom() throws RandomException
RandomException