Skip to content
/ pcg64 Public

C Implementation of the PCG64 PRNG

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.txt
MIT
LICENSE-MIT.txt
Notifications You must be signed in to change notification settings

rkern/pcg64

Repository files navigation

C Implementation of PCG64

This is a pure C implementation of the PCG64 member of the PCG family of pseudorandom number generators. 128-bit arithmetic is emulated when a suitable uint128_t type is not available. Settable streams and jumpahead are implemented.

This is not necessarily production-quality code. It's mostly presented here in the interest of sharing for others to take on.

License

Available under either the Apache v2 license or MIT license.

Todo

  • MSVC portability #ifdefery
  • Real test vectors verified against upstream

About

C Implementation of the PCG64 PRNG

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.txt
MIT
LICENSE-MIT.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published