cprng-aes 0.5.0 → 0.5.1
raw patch · 2 files changed
+3/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Crypto/Random/AESCtr.hs +2/−1
- cprng-aes.cabal +1/−1
Crypto/Random/AESCtr.hs view
@@ -101,7 +101,8 @@ instance CPRG AESRNG where cprgCreate = make- cprgSetReseedThreshold lvl rng = reseedThreshold (rng { aesrngThreshold = lvl })+ cprgSetReseedThreshold lvl rng = reseedThreshold (rng { aesrngThreshold = if nbChunks > 0 then nbChunks else 1 })+ where nbChunks = lvl `div` chunkSize cprgGenerate len rng = genRanBytes rng len cprgGenerateWithEntropy len rng = let ent = toBytes $ grabEntropy len (aesrngEntropy rng)
cprng-aes.cabal view
@@ -1,5 +1,5 @@ Name: cprng-aes-Version: 0.5.0+Version: 0.5.1 Description: Simple crypto pseudo-random-number-generator with really good randomness property. .