/usr/include/dieharder/rgb_operm.h is in libdieharder-dev 3.31.1-7.
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 37 38 | /*
* rgb_operm test header.
*/
/*
* function prototype
*/
int rgb_operm(Test **test,int irun);
static Dtest rgb_operm_dtest __attribute__((unused)) = {
"RGB Overlapping Permuations Test",
"rgb_operm",
"\n\
#========================================================================\n\
# RGB Overlapping Permutations Test\n\
# Forms both the exact (expected) covariance matrix for overlapping\n\
# permutations of random integer and an empirical covariance matrix\n\
# formed from a long string of samples. The difference is expected\n\
# to have a chisq distribution and hence can be transformed into a\n\
# sample p-value. Note that this is one possible functional replacement\n\
# for the broken/defunct diehard operm5 test, but one that permits k (the\n\
# number of numbers in the overlapping permutation window) to be varied\n\
# from 2 to perhaps 8.\n\
#\n",
100, /* Default psamples */
100000, /* Default tsamples */
1, /* We magically make all the bit tests return a single histogram */
rgb_operm,
0
};
/*
* Global variables.
*
* rgb_operm_k is the size of the overlapping window that is slid along
* a data stream of rands from x_i to x_{i+k} to compute c[][].
*/
unsigned int rgb_operm_k;
|