mt19937: Standard 32-bit Mersenne Twister PRNG, in pure Haskell

[ cryptography, data, library, mit, random ] [ Propose Tags ] [ Report a vulnerability ]

Please see README.md.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.1.1
Change log CHANGELOG.md
Dependencies base (>=4.16.3.0 && <4.21), vector (>=0.13.1.0 && <0.14) [details]
Tested with ghc ==9.8.1, ghc ==9.6.4, ghc ==9.4.8, ghc ==9.2.8
License MIT
Author Ben Orchard
Maintainer Ben Orchard <thefirstmuffinman@gmail.com>
Category Data, Random, Cryptography
Home page https://github.com/raehik/mt19937-hs#readme
Bug tracker https://github.com/raehik/mt19937-hs/issues
Source repo head: git clone https://github.com/raehik/mt19937-hs
Uploaded by raehik at 2024-07-14T19:18:32Z
Distributions NixOS:0.1.1, Stackage:0.1.1
Downloads 89 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for mt19937-0.1.1

[back to package description]

mt19937

Efficient MT19937 (standard 32-bit Mersenne Twister PRNG) implementation, in pure Haskell (no FFI) with a pure interface.

Only the PRNG itself is implemented. If you'd like to use this as a PRNG in any capacity, you'll need to wrap it into some monad or some such.

Doesn't seem too useful? You'd be surprised. This was originally written while decoding a file header which was bafflingly encoded using a set-seed MT19937.

License

Provided under the MIT license. See LICENSE for license text.