Skip to content

Function ids::fill_random

zaun_community_protocol::ids::fill_random · Function

pub fn fill_random(buf: &mut [u8]) -> Result<(), RngError>

Fills buf from the operating system CSPRNG.

RngError when getrandom fails.

Full rustdoc page