/usr/include/dieharder/diehard_birthdays.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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | /*
* diehard_birthdays test header.
*/
/*
* function prototype
*/
int diehard_birthdays(Test **test, int irun);
static Dtest diehard_birthdays_dtest __attribute__((unused)) = {
"Diehard Birthdays Test",
"diehard_birthdays",
"\n\
#==================================================================\n\
# Diehard \"Birthdays\" test (modified).\n\
# Each test determines the number of matching intervals from 512\n\
# \"birthdays\" (by default) drawn on a 24-bit \"year\" (by\n\
# default). This is repeated 100 times (by default) and the\n\
# results cumulated in a histogram. Repeated intervals should be\n\
# distributed in a Poisson distribution if the underlying generator\n\
# is random enough, and a a chisq and p-value for the test are\n\
# evaluated relative to this null hypothesis.\n\
#\n\
# It is recommended that you run this at or near the original\n\
# 100 test samples per p-value with -t 100.\n\
#\n\
# Two additional parameters have been added. In diehard, nms=512\n\
# but this CAN be varied and all Marsaglia's formulae still work. It\n\
# can be reset to different values with -x nmsvalue.\n\
# Similarly, nbits \"should\" 24, but we can really make it anything\n\
# we want that's less than or equal to rmax_bits = 32. It can be\n\
# reset to a new value with -y nbits. Both default to diehard's\n\
# values if no -x or -y options are used.\n\
#==================================================================\n",
100,
100,
1,
diehard_birthdays,
0
};
/*
* Global variables
uint diehard_birthdays_nms,diehard_birthdays_nbits;
uint *diehard_birthdays_rand_uint;
*/
|