Function lrs::syscall::getrandom

Retrieves random bytes from the system.

Syntax

fn getrandom(buf: &mut [u8], flags: u32) -> i32

Arguments

NameDescription
buf

The buffer in which the bytes will be stored.

flags

Flags used while retrieving the data.

Return value

Returns the number of bytes read or an error value.

See also