Stability | experimental |
---|---|
Maintainer | Ozgun Ataman <ozgun.ataman@soostone.com> |
Safe Haskell | None |
Convenience thread-safe wrapper around mwc-random library for practical supply of random numbers in a concurrent environment.
Documentation
Create a new RNG in the IO monad using withSystemRandom
.
withRNG :: RNG -> (GenIO -> IO a) -> IO aSource
Perform given action, mutating the RNG state underneath.
randomToken :: Int -> RNG -> IO ByteStringSource
Generates a random salt of given length
Re-export MWC for convenience.
module System.Random.MWC