How does dieharder know when processing binary numbers from a file how “long” these numbers are?
0 I want to examine the random numbers generated by a random number generator. Each random number is 4 bytes. I have collected 50,000 numbers, each number is in a separate file (so I have 50,000 files each containing 4 bytes). I'd like dieharder (a testing and benchmarking tool for random number generators) to benchmark these random numbers. dieharder supports multiple ways of feeding random bytes. For feeding ASCII numbers it supports a header format where one can define "numbit". According to the man page this looks like that: dieharder -g 202 -f testrands.txt -a Where testrands.txt should consist of a header such as: #================================================================== # generator mt19937_1999 seed = 1274511046 #================================================================== type: d count: 100000 numbit: 32 3129711816 85411969 2545911541 Now it also supports raw binary data: dieharder -g 201 -f testrands.bin -a My question is: How would ...