PDA

View Full Version : Dieharder tests



kedarm
July 25th, 2008, 11:35 AM
Hi!

This is not related to Ubuntu as such, but I am hoping for help anyway.

When using the dieharder software (http://www.phy.duke.edu/~rgb/General/dieharder.php_) to check the quality of a random number generator (rng), how does one use a file to input data?

ie. if I have a rng and use it to produce 1000000 random numbers and store them in a file - input.txt, how do I use the dieharder program to run its tests on these random numbers?

Thanks

collinstocks
November 24th, 2008, 11:21 PM
dieharder -g 66 -f ./myfile.bin

if it is a binary file, or

dieharder -g 65 -f ./myfile.txt

if you have armored it in some way. You have to state how you armored it at the top of the file, and I'm not exactly sure how you do that.