The tf-random package

[Tags:bsd3, library]

This package contains an implementation of a high-quality splittable pseudorandom number generator. The generator is based on a cryptographic hash function built on top of the ThreeFish block cipher. See the paper Splittable Pseudorandom Number Generators Using Cryptographic Hashing by Claessen, Pałka for details and the rationale of the design.

The package provides the following:

The package uses an adapted version of the reference C implementation of ThreeFish from the reference package of the Skein hash function (, originally written by Doug Whiting.

Please note that even though the generator provides very high-quality pseudorandom numbers, it has not been designed with cryptographic applications in mind.


Versions 0.1, 0.2, 0.3, 0.4, 0.5
Change log ChangeLog
Dependencies base (>=4.2 && <5), primitive (>=0.3), random, time [details]
License BSD3
Author Michał Pałka <>
Maintainer Michał Pałka <>
Category Random
Source repository head: darcs get
Uploaded Wed Apr 9 13:57:37 UTC 2014 by MichalPalka
Distributions Arch:0.5, Debian:0.5, Fedora:0.5, FreeBSD:0.5, LTSHaskell:0.5, NixOS:0.5, Stackage:0.5, Tumbleweed:0.5
Downloads 132477 total (10569 in the last 30 days)
0 []
Status Docs available [build log]
Successful builds reported [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees