/usr/include/dieharder/diehard_3dsphere.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 | /*
* diehard_3dsphere test header.
*/
/*
* function prototype
*/
int diehard_3dsphere(Test **test,int irun);
static Dtest diehard_3dsphere_dtest __attribute__((unused)) = {
"Diehard 3d Sphere (Minimum Distance) Test",
"diehard_3dsphere",
"\
#==================================================================\n\
# Diehard 3d Sphere (Minimum Distance) Test\n\
# Choose 4000 random points in a cube of edge 1000. At each \n\
# point, center a sphere large enough to reach the next closest \n\
# point. Then the volume of the smallest such sphere is (very \n\
# close to) exponentially distributed with mean 120pi/3. Thus \n\
# the radius cubed is exponential with mean 30. (The mean is \n\
# obtained by extensive simulation). The 3DSPHERES test gener- \n\
# ates 4000 such spheres 20 times. Each min radius cubed leads \n\
# to a uniform variable by means of 1-exp(-r^3/30.), then a \n\
# KSTEST is done on the 20 p-values. \n\
#\n\
# This test ignores tsamples, and runs the usual default 100\n\
# psamples to use in the final KS test.\n\
#==================================================================\n",
100,
4000,
1,
diehard_3dsphere,
0
};
|