|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part5.PRNG part5.RSA_PRNG
A class that implements an RSA Pseudo-Random Bit Generator.
Constructor Summary | |
RSA_PRNG(java.math.BigInteger seed,
java.math.BigInteger p,
java.math.BigInteger q)
A constrcutor that takes a seed value seed and the values needed to
instantiate an RSA Pseudo-Random Bit Generator. |
Method Summary | |
int |
nextBit()
A method to generate a single random bit as an integer value 0 or 1 . |
Methods inherited from class part5.PRNG |
random, random |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RSA_PRNG(java.math.BigInteger seed, java.math.BigInteger p, java.math.BigInteger q) throws java.lang.Exception
seed
and the values needed to
instantiate an RSA Pseudo-Random Bit Generator.
java.lang.Exception
Method Detail |
public int nextBit() throws java.lang.Exception
0
or 1
.
nextBit
in class PRNG
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |