Skip to main content

fill_random

Function fill_random 

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

Fills buf from the operating system CSPRNG.

ยงErrors

RngError when getrandom fails.