Skip to main content

xila_random_fill

Function xila_random_fill 

Source
pub unsafe extern "C" fn xila_random_fill(
    buffer: *mut c_void,
    size: usize,
) -> Status
Expand description

Fill the caller’s buffer with random bytes from the host-granted entropy source. Zero size succeeds without touching the buffer or the source, and permits a null buffer. A pending source suspends the caller’s coroutine. On failure the buffer contents are unspecified and must not be used.

§Safety

Buffer must be writable for size bytes.