edu.harvard.deas.hyperenc.vsat
Class TrueRandomSource
java.lang.Object
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 . |
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 |
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
TrueRandomSource
public TrueRandomSource()
genRandomness
public abstract byte[] genRandomness()
- Gets a bunch of random bytes. Takes no arguments and makes no apologies.
Returns null on failure