X9_31using3DES
insteadpublic class X917Random extends SecRandom
X917Random,
each will output a different pseudo random sequence, even if you specified
the same seed.
If the method setSeed(byte[] seed) of the base class
SecRandom is not explicitly called by the user, it
automatically generated a seed with the default SeedGenerator
set in the SeedGenerator.getDefault().getSeed(). Also, when
an attempt is made to reseed this object, the given seed supplements rather
than replaces the existing seed.| Constructor and Description |
|---|
X917Random()
Deprecated.
Generates a new
X917Random1 object. |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
engineGenerateSeed(int numBytes)
Deprecated.
Generates a cryptographically strong seed of any length.
|
protected void |
engineNextBytes(byte[] bytes)
Deprecated.
Returns the next bytes.length pseudo-random bytes.
|
protected void |
engineSetSeed(byte[] seed)
Deprecated.
Reseeds this random object.
|
getDefault, nextBytes, setDefault, setSeed, setSeed, setSeedgenerateSeed, getAlgorithm, getInstance, getInstance, getInstance, getInstanceStrong, getProvider, getSeed, nextpublic X917Random()
throws RandomException
X917Random1 object.RandomExceptionprotected void engineSetSeed(byte[] seed)
engineSetSeed in class SecRandomseed - the supplemental seedprotected void engineNextBytes(byte[] bytes)
engineNextBytes in class SecRandombytes - an array whose length specifies the number of bytes requested
and will hold the returned pseudo-random bytes.protected byte[] engineGenerateSeed(int numBytes)
numBytes - Number of seed bytes requested.