nix icon indicating copy to clipboard operation
nix copied to clipboard

Added wrapper around `getrandom` syscall

Open stefins opened this issue 3 years ago • 0 comments

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]

stefins avatar Sep 23 '22 17:09 stefins