/usr/include/dieharder/sts_runs.h is in libdieharder-dev 3.31.1-2.
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 | /*
* sts_runs test header.
*/
/*
* function prototype
*/
int sts_runs(Test **test,int irun);
static Dtest sts_runs_dtest __attribute__((unused)) = {
"STS Runs Test",
"sts_runs",
"\
#==================================================================\n\
# STS Runs Test\n\
# Counts the total number of 0 runs + total number of 1 runs across\n\
# a sample of bits. Note that a 0 run must begin with 10 and end\n\
# with 01. Note that a 1 run must begin with 01 and end with a 10.\n\
# This test, run on a bitstring with cyclic boundary conditions, is\n\
# absolutely equivalent to just counting the 01 + 10 bit pairs.\n\
# It is therefore totally redundant with but not as good as the\n\
# rgb_bitdist() test for 2-tuples, which looks beyond the means to the\n\
# moments, testing an entire histogram of 00, 01, 10, and 11 counts\n\
# to see if it is binomially distributed with p = 0.25.\n\
#==================================================================\n",
100,
100000,
1,
sts_runs,
0
};
|