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

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

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.