@hackage / mt19937

Standard 32-bit Mersenne Twister PRNG, in pure Haskell

Latest0.1.1

About

Metadata

  • Last updated , by raehik
  • License MIT
  • Categories Cryptography
  • Maintained by: Ben Orchard <thefirstmuffinman@gmail.com>

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.8.1
  2. 9.6.4
  3. 9.4.8
  4. 9.2.8

Readme

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.