/usr/include/dieharder/diehard_squeeze.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 | /*
* diehard_squeeze test header.
*/
/*
* function prototype
*/
int diehard_squeeze(Test **test,int irun);
static Dtest diehard_squeeze_dtest __attribute__((unused)) = {
"Diehard Squeeze Test",
"diehard_squeeze",
"\
#==================================================================\n\
# Diehard Squeeze Test.\n\
# Random integers are floated to get uniforms on [0,1). Start- \n\
# ing with k=2^31=2147483647, the test finds j, the number of \n\
# iterations necessary to reduce k to 1, using the reduction \n\
# k=ceiling(k*U), with U provided by floating integers from \n\
# the file being tested. Such j's are found 100,000 times, \n\
# then counts for the number of times j was <=6,7,...,47,>=48 \n\
# are used to provide a chi-square test for cell frequencies. \n\
#==================================================================\n",
100,
100000,
1,
diehard_squeeze,
0
};
|