Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data DevRandom
Documentation
On systems that have it, /dev/random is a handy-dandy ready-to-use source of nonsense. Keep in mind that on some systems, Linux included, /dev/random collects "real" entropy, and if you don't have a good source of it, such as special hardware for the purpose or a *lot* of network traffic, it's pretty easy to suck the entropy pool dry with entropy-intensive applications. For many purposes other than cryptography, /dev/urandom is preferable because when it runs out of real entropy it'll still churn out pseudorandom data.
Instances
Eq DevRandom Source # | |
Show DevRandom Source # | |
RandomSource IO DevRandom Source # | |
Defined in Data.Random.Source.DevRandom getRandomPrimFrom :: DevRandom -> Prim t -> IO t Source # getRandomWord8From :: DevRandom -> IO Word8 Source # getRandomWord16From :: DevRandom -> IO Word16 Source # getRandomWord32From :: DevRandom -> IO Word32 Source # getRandomWord64From :: DevRandom -> IO Word64 Source # getRandomDoubleFrom :: DevRandom -> IO Double Source # getRandomNByteIntegerFrom :: DevRandom -> Int -> IO Integer Source # |