crypto-random-0.0.9: Simple cryptographic random related types

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
PortabilityGood
Safe HaskellNone
LanguageHaskell98

Crypto.Random.Test

Description

Provide way to test usual simple statisticals test for randomness

Synopsis

Documentation

data RandomTestState Source

Mutable random test State

data RandomTestResult Source

Randomness various result relative to random bytes

Constructors

RandomTestResult 

Fields

res_totalChars :: Word64

Total number of characters

res_entropy :: Double

Entropy per byte

res_chi_square :: Double

Chi Square

res_mean :: Double

Arithmetic Mean

res_compressionPercent :: Double

Theorical Compression percent

res_probs :: [Double]

Probability of every bucket

randomTestInitialize :: IO RandomTestState Source

Initialize new state to run tests

randomTestAppend :: RandomTestState -> ByteString -> IO () Source

Append random data to the test state

randomTestFinalize :: RandomTestState -> IO RandomTestResult Source

Finalize random test state into some result