/usr/include/dieharder/sts_monobit.h is in libdieharder-dev 3.31.1-7build1.
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 | /*
* sts_monobit test header.
*/
/*
* function prototype
*/
int sts_monobit(Test **test,int irun);
static Dtest sts_monobit_dtest __attribute__((unused)) = {
"STS Monobit Test",
"sts_monobit",
"\
#==================================================================\n\
# STS Monobit Test\n\
# Very simple. Counts the 1 bits in a long string of random uints.\n\
# Compares to expected number, generates a p-value directly from\n\
# erfc(). Very effective at revealing overtly weak generators;\n\
# Not so good at determining where stronger ones eventually fail.\n\
#==================================================================\n",
100,
100000,
1,
sts_monobit,
0
};
|