public final class DiehardInputGenerator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
generateOutputFile(java.util.Random rng,
java.io.File outputFile)
Generates a file of random data in a format suitable for the DIEHARD test.
|
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The first argument is the class name of the RNG, the second
is the file to use for output.java.lang.Exception
- If there are problems setting up the RNG or writing to
the output file.public static void generateOutputFile(java.util.Random rng, java.io.File outputFile) throws java.io.IOException
rng
- The random number generator to use to generate the data.outputFile
- The file that the random data is written to.java.io.IOException
- If there is a problem writing to the file.