| Copyright | (c) Lars Kuhtz <lakuhtz@gmail.com> 2017 |
|---|---|
| License | MIT |
| Maintainer | lakuhtz@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.ByteString.Random.Internal
Description
- generate :: RandomWords g => g -> Natural -> IO ByteString
- class RandomWords g where
Documentation
Arguments
| :: 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 #
Minimal complete definition