Copyright | Soostone Inc Snap Framework Authors |
---|---|
License | BSD3 |
Maintainer | Ozgun Ataman <ozgun.ataman@soostone.com> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
Data.RNG
Description
Convenience thread-safe wrapper around mwc-random library for practical supply of random numbers in a concurrent environment.
Documentation
withRNG :: RNG -> (StdGen -> (a, StdGen)) -> IO a Source #
Perform given action, mutating the RNG state underneath.
randomToken :: Int -> RNG -> IO ByteString Source #
Generates a random salt of given length
Re-export Random for convenience.
module System.Random