Produces an unpredictable four-byte value.
See: randombytes_random()
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11
Modulelibsodium-bindings-0.0.3.0Haskell2010
A collection of functions for securely generating unpredictable data. This uses the best option on each platform, as follows:
On Windows, RtlGenRandom.
On FreeBSD and Linux, getrandom syscall.
On other UNIX platforms, /dev/urandom.
Produces an unpredictable four-byte value.
See: randombytes_random()
Produces an unpredictable four-byte value not larger than the argument. This function guarantees a uniform distribution on results, even if the upper limit is not a power of 2.
randombytesBuf Fills a buffer of the given size with unpredictable bytes.
See: randombytes_buf()