Copyright | (c) Lars Kuhtz <lakuhtz@gmail.com> 2017 |
---|---|
License | MIT |
Maintainer | lakuhtz@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- generate :: RandomWords g => g -> Natural -> IO ByteString
- class RandomWords g where
Documentation
:: RandomWords g | |
=> g | PRNG |
-> Natural | Length of the result bytestring in bytes |
-> IO ByteString |
Generates uniformily distributed random bytestrings of length n using the given PRNG.
class RandomWords g where Source #
Instances
g ~ GenIO => RandomWords g Source # | |
g ~ GenIO => RandomWords g Source # | |