| java.lang.Object java.security.SecureRandomSpi sun.security.mscapi.PRNG
Constructor Summary | |
public | PRNG() Creates a random number generator. |
Method Summary | |
protected byte[] | engineGenerateSeed(int numBytes) Returns the given number of seed bytes. | protected void | engineNextBytes(byte[] bytes) Generates a user-specified number of random bytes. | protected void | engineSetSeed(byte[] seed) Reseeds this random object. |
PRNG | public PRNG()(Code) | | Creates a random number generator.
|
engineGenerateSeed | protected byte[] engineGenerateSeed(int numBytes)(Code) | | Returns the given number of seed bytes. This call may be used to
seed other random number generators.
Parameters: numBytes - the number of seed bytes to generate. the seed bytes. |
engineNextBytes | protected void engineNextBytes(byte[] bytes)(Code) | | Generates a user-specified number of random bytes.
Parameters: bytes - the array to be filled in with random bytes. |
engineSetSeed | protected void engineSetSeed(byte[] seed)(Code) | | Reseeds this random object. The given seed supplements, rather than
replaces, the existing seed. Thus, repeated calls are guaranteed
never to reduce randomness.
Parameters: seed - the seed. |
Methods inherited from java.security.SecureRandomSpi | abstract protected byte[] engineGenerateSeed(int numBytes)(Code)(Java Doc) abstract protected void engineNextBytes(byte[] bytes)(Code)(Java Doc) abstract protected void engineSetSeed(byte[] seed)(Code)(Java Doc)
|
|
|