blob: 6ca59cc12c98fa684141812eae359100282c78a7 [file] [log] [blame]
unsafe extern "C" {
fn TEE_GenerateRandom(randomBuffer: *mut core::ffi::c_void, randomBufferLen: libc::size_t);
}
pub fn fill_bytes(bytes: &mut [u8]) {
unsafe { TEE_GenerateRandom(bytes.as_mut_ptr().cast(), bytes.len()) }
}