nix
nix copied to clipboard
Added wrapper around `getrandom` syscall
Hi,
Added wrapper around Linux's getrandom syscall as mentioned in #1826.
let random_bytes = getrandom(1000, RandomMode::GRND_RANDOM).unwrap();
returns a Vector with 1000 random bytes
Thanks :) Signed-off-by: Stefin [email protected]