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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

76d205a · Jun 26, 2019

History

10 Commits
Jun 26, 2019
Jun 26, 2019
Jun 26, 2019
Jun 26, 2019
Jun 26, 2019
Jun 26, 2019
Dec 26, 2015
Jun 26, 2019
Jun 26, 2019

Repository files navigation

C Implementation of PCG64

  • Robert Kern <robert.kern@gmail.com>

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