edu.harvard.deas.hyperenc.vsat
Class TrueRandomSource

java.lang.Object
  extended by edu.harvard.deas.hyperenc.vsat.TrueRandomSource
Direct Known Subclasses:
DevRandomSource, FileRandomSource

public abstract class TrueRandomSource
extends Object

True random source abstract


Field Summary
static int DATA_LENGTH
          The number of bytes of random data that are returned by genRandomness.
 
Constructor Summary
TrueRandomSource()
           
 
Method Summary
abstract  byte[] genRandomness()
          Gets a bunch of random bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_LENGTH

public static final int DATA_LENGTH
The number of bytes of random data that are returned by genRandomness.

See Also:
Constant Field Values
Constructor Detail

TrueRandomSource

public TrueRandomSource()
Method Detail

genRandomness

public abstract byte[] genRandomness()
Gets a bunch of random bytes. Takes no arguments and makes no apologies. Returns null on failure