splitmix: Fast Splittable PRNG
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Pure Haskell implementation of SplitMix described in
Guy L. Steele, Jr., Doug Lea, and Christine H. Flood. 2014. Fast splittable pseudorandom number generators. In Proceedings of the 2014 ACM International Conference on Object Oriented Programming Systems Languages & Applications (OOPSLA '14). ACM, New York, NY, USA, 453-472. DOI: https://doi.org/10.1145/2660193.2660195
The paper describes a new algorithm SplitMix for splittable pseudorandom number generator that is quite fast: 9 64 bit arithmetic/logical operations per 64 bits generated.
SplitMix is tested with two standard statistical test suites (DieHarder and TestU01, this implementation only using the former) and it appears to be adequate for "everyday" use, such as Monte Carlo algorithms and randomized data structures where speed is important.
In particular, it should not be used for cryptographic or security applications, because generated sequences of pseudorandom values are too predictable (the mixing functions are easily inverted, and two successive outputs suffice to reconstruct the internal state).
[Skip to Readme]
Properties
Versions | 0, 0.0.1, 0.0.2, 0.0.3, 0.0.3, 0.0.4, 0.0.5, 0.1, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5 |
---|---|
Change log | Changelog.md |
Dependencies | base (>=4.3 && <4.14), deepseq (>=1.3.0.0 && <1.5), random (>=1.0 && <1.2), time (>=1.2.0.3 && <1.10) [details] |
License | BSD-3-Clause |
Author | |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Category | System, Random |
Bug tracker | https://github.com/phadej/splitmix#issues |
Source repo | head: git clone https://github.com/phadej/splitmix.git |
Uploaded | by phadej at 2019-07-30T09:38:11Z |
Modules
[Index] [Quick Jump]
- System
Flags
Manual Flags
Name | Description | Default |
---|---|---|
optimised-mixer | Use JavaScript for mix32 | Disabled |
random | Providen RandomGen SMGen instance | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- splitmix-0.0.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees