|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.SecureRandomSpi
net.burtleburtle.bob.rand.ISAACEngine
public class ISAACEngine
This class defines the Service Provider for the ISAAC algorithm.
Constructor Summary | |
---|---|
ISAACEngine()
Creates a new instance and seeds it with random data obtained from java.security.SecureRandom 's getSeed() method. |
Method Summary | |
---|---|
byte[] |
engineGenerateSeed(int numBytes)
Returns the given number of seed bytes computed using the ISAAC algorithm. |
void |
engineNextBytes(byte[] bytes)
Generates a user-specified number of random bytes. |
void |
engineSetSeed(byte[] seed)
Reseeds this random object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ISAACEngine()
java.security.SecureRandom
's getSeed()
method.
Method Detail |
---|
public byte[] engineGenerateSeed(int numBytes)
engineNextBytes()
internally.
engineGenerateSeed
in class java.security.SecureRandomSpi
numBytes
- The number of seed bytes to generate.
public void engineNextBytes(byte[] bytes)
engineNextBytes
in class java.security.SecureRandomSpi
bytes
- The array to fill with random bytes.public void engineSetSeed(byte[] seed)
engineSetSeed
in class java.security.SecureRandomSpi
seed
- The seed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |