This is a series of quilt patches that adds a simple configure script for building, improves performance, and fixes bugs. These patches specifically target PractRand pre0.95.
Usage:
curl -OL https://downloads.sourceforge.net/project/pracrand/PractRand-pre0.95.zip
unzip PractRand-pre0.95.zip
quilt push -a
./configure
make -kj$(nproc)
In particular, I'm interested in running PractRand compiled with sanitizer instrumentation since it, along with compiler warnings, reveals lots of serious bugs in PractRand:
export UBSAN_OPTIONS=print_stacktrace=1
CXX=g++ \
CXXFLAGS='-ggdb3 -Og -fsanitize=address -fsanitize=undefined' \
LDFLAGS='-fsanitize=address -fsanitize=undefined' \
./configure
make -kj$(nproc)
./RNG_test stdin64 </dev/urandom