License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | Good |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- replenish :: Int -> [EntropyBackend] -> Ptr Word8 -> IO ()
- data EntropyBackend
- supportedBackends :: [IO (Maybe EntropyBackend)]
- gatherBackend :: EntropyBackend -> Ptr Word8 -> Int -> IO Int
Documentation
replenish :: Int -> [EntropyBackend] -> Ptr Word8 -> IO () Source #
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
data EntropyBackend Source #
Any Entropy Backend
supportedBackends :: [IO (Maybe EntropyBackend)] Source #
All supported backends