Skip to content

PractRand patches for building, performance, and correctness

Notifications You must be signed in to change notification settings

skeeto/practrand-patches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

PractRand Patches

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

About

PractRand patches for building, performance, and correctness

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published