public class RandRijndael extends RandomStreamBase
RandomStream for their definition).
Seeds/states must be given as 16-dimensional
vectors of bytes (8-bit integers).
The default initial seed is a vector filled with zeros.
The Rijndael implementation used here is that of the Cryptix Development Team, which can be found on the Rijndael creators' page .
| Constructor and Description |
|---|
RandRijndael()
Constructs a new stream.
|
RandRijndael(java.lang.String name)
Constructs a new stream with the identifier name
(used in the toString method).
|
| Modifier and Type | Method and Description |
|---|---|
RandRijndael |
clone()
Clones the current generator and return its copy.
|
byte[] |
getState()
Returns the current state of the stream, represented as an
array of four integers.
|
void |
resetNextSubstream()
Reinitializes the stream to the beginning of its next
substream: Ng is computed, and
Cg and Bg are set to Ng.
|
void |
resetStartStream()
Reinitializes the stream to its initial state Ig:
Cg and Bg are set to Ig.
|
void |
resetStartSubstream()
Reinitializes the stream to the beginning of its current
substream: Cg is set to Bg.
|
static void |
setPackageSeed(byte[] seed)
Sets the initial seed for the class RandRijndael to the
16 bytes of the vector seed[0..15].
|
void |
setSeed(byte[] seed)
This method is discouraged for normal use.
|
java.lang.String |
toString()
Returns a string containing the current state of this stream.
|
formatState, formatStateFull, increasedPrecision, nextArrayOfDouble, nextArrayOfInt, nextDouble, nextIntpublic RandRijndael()
public RandRijndael(java.lang.String name)
name - name of the streampublic static void setPackageSeed(byte[] seed)
seed - array of 16 elements representing the seedpublic void setSeed(byte[] seed)
seed - array of 16 elements representing the seedpublic byte[] getState()
public RandRijndael clone()
clone in interface CloneableRandomStreamclone in class RandomStreamBasepublic void resetStartStream()
RandomStreamresetStartStream in interface RandomStreamresetStartStream in class RandomStreamBasepublic void resetStartSubstream()
RandomStreamresetStartSubstream in interface RandomStreamresetStartSubstream in class RandomStreamBasepublic void resetNextSubstream()
RandomStreamresetNextSubstream in interface RandomStreamresetNextSubstream in class RandomStreamBasepublic java.lang.String toString()
RandomStreamtoString in interface RandomStreamtoString in class RandomStreamBaseTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.