Function lrs::sys::get_random

Retrieves random bytes from the system.

Syntax

fn get_random(buf: &mut [u8]) -> Result<&mut [u8], Errno>

Arguments

NameDescription
buf

The buffer in which the bytes will be stored.

Return value

Returns an initial sequence of the slice that contains random bytes.