Function getrandom_uninit
pub fn getrandom_uninit(
buf: &mut [MaybeUninit<u8>],
flags: GetRandomFlags,
) -> Result<(&mut [u8], &mut [MaybeUninit<u8>]), Errno> ⓘ
Available on crate feature
dep_rustix
only.Expand description
getrandom(buf, flags)
—Reads a sequence of random bytes.
This is identical to getrandom
, except that it can read into
uninitialized memory. It returns the slice that was initialized by this
function and the slice that remains uninitialized.