Hacl.RandomBuffer
A randomness function implemented with platform-dependent code for Unix and Windows
The randombytes
function is handwritten, unverified C code. In Unix, it is implemented using the getrandom
syscall, with a fallback to /dev/urandom
. In Windows, it is implemented using CryptGenRandom
.