name: mersenne-random-pure64
version: 0.1
homepage: http://code.haskell.org/~dons/code/mt19937-random
synopsis: Generate high quality pseudorandom numbers purely using a Mersenne Twister
description:
The Mersenne twister is a pseudorandom number generator developed by
Makoto Matsumoto and Takuji Nishimura that is based on a matrix linear
recurrence over a finite binary field. It provides for fast generation
of very high quality pseudorandom numbers. The source for the C code
can be found here:
.
.
This library provides a purely functional binding to the 64 bit
classic mersenne twister, along with instances of RandomGen, so the
generator can be used with System.Random. The generator should
typically be a few times faster than the default StdGen (but much
slower than the impure 'mersenne-random' library based on SIMD
instructions and destructive state updates.
.
category: Math, System
license: BSD3
license-file: LICENSE
copyright: (c) 2008. Don Stewart
author: Don Stewart
maintainer: Don Stewart
cabal-version: >= 1.2.0
build-type: Configure
tested-with: GHC ==6.8.2
build-type: Configure
flag small_base
description: Build with new smaller base library
default: False
library
exposed-modules: System.Random.Mersenne.Pure64
System.Random.Mersenne.Pure64.Base
extensions: CPP, ForeignFunctionInterface
if flag(small_base)
build-depends: base < 3
else
build-depends: base >= 3, old-time, random
cc-options:
-O3 -finline-functions -fomit-frame-pointer
-fno-strict-aliasing --param max-inline-insns-single=1800
ghc-options: -Wall -O2 -fvia-C -fexcess-precision
c-sources: cbits/mt19937-64.c
cbits/mt19937-64-unsafe.c
include-dirs: include
includes:
install-includes: mt19937-64.h
mt19937-64-unsafe.h