random-bytestring-0.1.2: Efficient generation of random bytestrings

Copyright(c) Lars Kuhtz <lakuhtz@gmail.com> 2017
LicenseMIT
Maintainerlakuhtz@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.ByteString.Random.Internal

Description

 

Synopsis

Documentation

generate Source #

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

uniformW8, uniformW64