libprng is a lightweight portable random number generator library written in c. The underlying algorithm is PCG-XSH-RR. A permuted congruential generator (PCG) is a full period generator. Down in the core, it is a LCG with output permutation added to it.
-
Lightweight. It can be embedded easily into applications.
-
Excellent performance in tests
-
Fast execution
-
Small state size
To compile the project, a compiler and cmake is required. First clone the repository:
git clone https://github.com/GlobularOne/libprng.gitConfigure the project:
cmake -B builddir .Use make to build the project:
make -C builddirYou can build and run the tests using:
make -C builddir build_tests testsYou can always send an email to me. I am available as GlobularOne@proton.me.
Apache Software License 2.0. See the LICENSE file for more information.