htestu-0.1.1.2: A library for testing correctness of pseudo random number generators in Haskell.

Safe HaskellNone
LanguageHaskell2010

Test.HTestU

Synopsis

Documentation

data TestResult Source #

Type for presenting a result of a test, instead of a p-value

runBattery :: RandomGen g => (g -> RandomStream) -> g -> Battery -> [Double] Source #

Run a given battery and present resulting p-values NOTE: returns [Double] instead of IO [Double], because it is transparent (for the same gen result should be the same)

toResults :: [Double] -> [TestResult] Source #

Prettifying a list of result p-values

runBatteryToResults :: RandomGen g => (g -> RandomStream) -> g -> Battery -> [TestResult] Source #

Run a given battery and present pretty results

c_smallCrush :: Battery Source #

Runs SmallCrush battery, 10 tests

c_crush :: Battery Source #

Runs Crush battery, 96 tests

c_bigCrush :: Battery Source #

Runs BigCrush Battery, 106 tests