#[no_mangle]
pub unsafe extern "C" fn sys_read_entropy(
buf: *mut u8,
len: usize,
flags: u32,
) -> isize
Expand description
Fill len
bytes in buf
with cryptographically secure random data.
Returns either the number of bytes written to buf (a positive value) or
-EINVAL
ifflags
contains unknown flags.-ENOSYS
if the system does not support random data generation.