part5
Class RSA_PRNG

java.lang.Object
  extended bypart5.PRNG
      extended bypart5.RSA_PRNG

public class RSA_PRNG
extends 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

RSA_PRNG

public RSA_PRNG(java.math.BigInteger seed,
                java.math.BigInteger p,
                java.math.BigInteger q)
         throws java.lang.Exception
A constrcutor that takes a seed value seed and the values needed to instantiate an RSA Pseudo-Random Bit Generator.

Throws:
java.lang.Exception
Method Detail

nextBit

public int nextBit()
            throws java.lang.Exception
A method to generate a single random bit as an integer value 0 or 1.

Specified by:
nextBit in class PRNG
Throws:
java.lang.Exception