Skip to main content

random_fill

Function random_fill 

Source
pub unsafe fn random_fill(state: *mut u32, buf: *mut u8, len: usize)
Expand description

Fill buf[..len] with bytes derived from xorshift32 output. No-op if buf is null.

ยงSafety

buf must be valid for len writes. state must be exclusively owned.