random-bytestring: Efficient generation of random bytestrings
Efficient generation of random bytestrings. The implementation populates uninitialized memory with uniformily distributed random 64 bit words (and 8 bit words for remaining bytes at the end of the bytestring).
Random words are generated using the PRNG from
the mwc-random package
or the pcg-random
package. It is also possible to use a custom PRNG by providing
an instance for the RandomWords
type class and using the function
generate
from the module Data.ByteString.Random.Internal.
The generated byte strings are suitable for statistical applications. They are not suitable for cryptographic applications.
[Skip to Readme]
Modules
[Index]
Downloads
- random-bytestring-0.1.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Versions [RSS] | 0.0.1, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.3.1, 0.1.3.2, 0.1.4 (info) |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.7 && <4.12), bytestring (>=0.10), mwc-random (>=0.13), nats (>=1.1), pcg-random (>=0.1) [details] |
Tested with | ghc ==7.8.4, ghc ==7.10.2, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.1 |
License | MIT |
Copyright | Copyright (c) 2017-2018 Lars Kuhtz <lakuhtz@gmail.com> |
Author | Lars Kuhtz <lakuhtz@gmail.com> |
Maintainer | Lars Kuhtz <lakuhtz@gmail.com> |
Category | System |
Home page | https://www.github.com/larskuhtz/random-bytestring |
Source repo | head: git clone https://www.github.com/larskuhtz/random-bytestring |
Uploaded | by larsk at 2018-03-17T07:16:07Z |
Distributions | Arch:0.1.4, LTSHaskell:0.1.4, NixOS:0.1.4, Stackage:0.1.4 |
Reverse Dependencies | 3 direct, 12 indirect [details] |
Downloads | 6360 total (2 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2018-03-17 [all 1 reports] |