-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Efficient generation of random bytestrings -- -- Efficient generation of random bytestrings. The implementation -- populates uninitialized memory with uniformily distributed random 64 -- bit words. The words are generated using the PRNG from the mwc-random -- package. The generated byte strings are suitable for statistical -- applications. They are not suitable for cryptographic -- applications. @package random-bytestring @version 0.1.1 -- |
-- ioProperty $ ((fromIntegral n ===) . B.length) <$> random n ---- --
-- n > 4 ==> ioProperty $ (/=) <$> random n <*> random n --random :: Natural -> IO ByteString -- | Generate a random bytestring of length n using the given PRNG. randomGen :: GenIO -> Natural -> IO ByteString