/usr/include/dieharder/diehard_dna.h is in libdieharder-dev 3.31.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | /*
* diehard_dna test header.
*/
/*
* function prototype
*/
int diehard_dna(Test **test,int irun);
static Dtest diehard_dna_dtest __attribute__((unused)) = {
"Diehard DNA Test",
"diehard_dna",
"\
#==================================================================\n\
# Diehard DNA Test.\n\
# \n\
# The DNA test considers an alphabet of 4 letters:: C,G,A,T,\n\
# determined by two designated bits in the sequence of random \n\
# integers being tested. It considers 10-letter words, so that \n\
# as in OPSO and OQSO, there are 2^20 possible words, and the \n\
# mean number of missing words from a string of 2^21 (over- \n\
# lapping) 10-letter words (2^21+9 \"keystrokes\") is 141909. \n\
# The standard deviation sigma=339 was determined as for OQSO \n\
# by simulation. (Sigma for OPSO, 290, is the true value (to \n\
# three places), not determined by simulation. \n\
# \n\
# Note 2^21 = 2097152\n\
# Note also that we don't bother with overlapping keystrokes \n\
# (and sample more rands -- rands are now cheap). \n\
#==================================================================\n",
100,
2097152,
1,
diehard_dna,
0
};
|