MIT licensed and maintained by Lars Kuhtz
This version can be pinned in stack with:random-bytestring-0.1.4@sha256:c446ec350e34a455fcc071b4f7be0f60b6fb63d45262facbefdef56c12e23faa,4928

Module documentation for 0.1.4

Build Status

This package is deprecated. Please, use genByteString from the random package (version >=1.2) instead.

Efficient Random Haskell ByteStrings


cabal install random-bytestring

Changes (2019-06-06)

  • Relax upper bound on base to <5.
  • Include GHC-8.6.5 into test-matrix. (2018-03-18)

  • Put dependency on pcg-random behind a cabal flag, which is on by default. This enables builds stackage nightly.

0.1.3 (2018-03-17)

  • Support for GHC-8.4.1


  • Add support for PCG as PRNG in addition to MWC.

    The module Data.ByteString.Random.PCG uses PCG. The module Data.ByteString.Random.MWC uses MWC. The module Data.ByteString.Random uses MWC for backward compatibility.

  • Support usage of custom PRNGs through the type class RandomWords and the function generate in the module Data.ByteString.Random.Internal.

  • Add some benchmark results to package description


  • Support for GHC-8.2.1 and Cabal-2.0


  • In the implementation of random, use withSystemGen that seeds the PRNG from the system randomness source.


  • First public release