HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

ModuleHsOpenSSL-0.11.7.11Haskell2010

OpenSSL.Random

PRNG services See http://www.openssl.org/docs/crypto/rand.html For random Integer generation, see OpenSSL.BN

Contents
  1. Random byte generation
Synopsis
  • PackageHsOpenSSL-0.11.7.11
  • Exports3
  • LanguageHaskell2010
  • LicenceLicenseRef-PublicDomain
  • SourceRandom.hs

Random byte generation

valueadd
  1. :: ByteString

    random data to be added to the pool

  2. -> Int

    the number of bits of entropy in the first argument

  3. -> IO ()

Add data to the entropy pool. It's safe to add sensitive information (e.g. user passwords etc) to the pool. Also, adding data with an entropy of 0 can never hurt.