Return a bytestring consisting of the given number of strongly random bytes
ModuleHsOpenSSL-0.11.7.10Haskell2010
OpenSSL.Random
PRNG services See http://www.openssl.org/docs/crypto/rand.html For random Integer generation, see OpenSSL.BN
- 3 values
- PackageHsOpenSSL-0.11.7.10
- Exports3
- LanguageHaskell2010
- LicenceLicenseRef-PublicDomain
- SourceRandom.hs
Random byte generation
3 declarationsReturn a bytestring consisting of the given number of pseudo random bytes
value
add :: ByteStringrandom data to be added to the pool
-> Intthe number of bits of entropy in the first argument
-> 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.