random-bytestring: Efficient generation of random bytestrings
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Warnings:
- 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users.
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]
Properties
Versions | 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.3.2, 0.1.4 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.7 && <5), bytestring (>=0.10), mwc-random (>=0.13), nats (>=1.1), pcg-random (>=0.1) [details] |
License | MIT |
Copyright | Copyright (c) 2017-2019 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 2019-06-06T06:14:20Z |
Modules
[Index] [Quick Jump]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
with-pcg | compile with support for PCG from pcg-random | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- random-bytestring-0.1.3.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees