HORIZON HASKELLDocslts/ghc-9.14.xb9228482026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · b922848 · 2026-10-12

Modulecrypton-2.1.7Haskell2010

Crypto.Random.Entropy.Unsafe

Synopsis
  • Packagecrypton-2.1.7
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause AND MIT AND ISC
  • SourceUnsafe.hs
valuereplenish :: Int -> [EntropyBackend] -> Ptr Word8 -> IO ()

Refill the entropy in a buffer

Call each entropy backend in turn until the buffer has been replenished.

If the buffer cannot be refill after 3 loopings, this will raise an User Error exception