https://github.com/lysxia/pure-splitmix
Purely functional splittable PRNG in OCaml
https://github.com/lysxia/pure-splitmix
Last synced: 12 months ago
JSON representation
Purely functional splittable PRNG in OCaml
- Host: GitHub
- URL: https://github.com/lysxia/pure-splitmix
- Owner: Lysxia
- License: mit
- Created: 2018-05-15T13:06:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-20T15:59:49.000Z (about 1 year ago)
- Last Synced: 2025-04-24T04:48:14.635Z (about 1 year ago)
- Language: OCaml
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Pure SplitMix
=============
Purely functional splittable PRNG.
- 100% OCaml.
- No dependencies.
### Install with `opam`
```sh
opam pin add pure-splitmix .
```
### Tests
The unit test checks that this implementation produces the same output as
Java's `SplittableRandom`.
The expected output `ref.out` was generated using OpenJDK 8.
```sh
make test
```
### See also
- [`splittable-random`](https://github.com/janestreet/splittable_random)
- [`pringo`](https://github.com/xavierleroy/pringo)