-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Efficient generation of random bytestrings -- -- Efficient generation of random bytestrings @package random-bytestring @version 0.1.0 -- | module Data.ByteString.Random -- | Generate a random bytestring of length n. The PRNG is seeded from the -- system randomness source. -- --
--   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