5 #[cfg(not(target_vendor = "uwp"))]
6 pub fn hashmap_random_keys() -> (u64, u64) {
9 unsafe { c::RtlGenRandom(&mut v as *mut _ as *mut u8, mem::size_of_val(&v) as c::ULONG) };
11 panic!("couldn't generate random bytes: {}", io::Error::last_os_error());
16 #[cfg(target_vendor = "uwp")]
17 pub fn hashmap_random_keys() -> (u64, u64) {
24 &mut v as *mut _ as *mut u8,
25 mem::size_of_val(&v) as c::ULONG,
26 c::BCRYPT_USE_SYSTEM_PREFERRED_RNG,
30 panic!("couldn't generate random bytes: {}", io::Error::last_os_error());