|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.burtleburtle.bob.rand.ISAACAlgorithm
class ISAACAlgorithm
supplementSeed(int[] seed )
method; made all variables privateSystem.arraycopy()
in ISAACAlgorithm(int[] seed)
Constructor Summary | |
---|---|
ISAACAlgorithm()
This constructor creates and initializes an new instance without using a seed. |
|
ISAACAlgorithm(int[] seed)
This constructor creates and initializes an new instance using a user-provided seed. |
Method Summary | |
---|---|
(package private) int |
nextInt()
Get a random integer value. |
(package private) void |
supplementSeed(int[] 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 |
---|
ISAACAlgorithm()
randinit(ctx,FALSE)
in the C implementation.
ISAACAlgorithm(int[] seed)
randinit(ctx, TRUE)
after putting seed in randctx
in the C implementation.
seed
- The seed.Method Detail |
---|
final int nextInt()
final void supplementSeed(int[] seed)
seed
- An integer array containing the seed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |