Function zx::cprng_draw_raw

pub unsafe extern "C" fn cprng_draw_raw(
    buffer: *mut u8,
    buffer_size: usize,
)
Expand description

Draw random bytes from the kernel’s CPRNG to fill the provided buffer. This function always fills the buffer.

§Safety

The provided pointer must be valid to write to for the provided number of bytes.

Wraps the zx_cprng_draw syscall.