Efficient generation of random bytestrings


Version on this page:
LTS Haskell 22.28:0.1.4
Stackage Nightly 2024-07-13:0.1.4
Latest on Hackage:0.1.4

See all snapshots random-bytestring appears in

MIT licensed and maintained by Lars Kuhtz
This version can be pinned in stack with:random-bytestring-,4705

Module documentation for

Build Status

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