5 #[cfg(not(target_vendor = "uwp"))]
6 pub fn hashmap_random_keys() -> (u64, u64) {
9 c::RtlGenRandom(&mut v as *mut _ as *mut u8,
10 mem::size_of_val(&v) as c::ULONG)
13 panic!("couldn't generate random bytes: {}",
14 io::Error::last_os_error());
19 #[cfg(target_vendor = "uwp")]
20 pub fn hashmap_random_keys() -> (u64, u64) {
25 c::BCryptGenRandom(ptr::null_mut(), &mut v as *mut _ as *mut u8,
26 mem::size_of_val(&v) as c::ULONG,
27 c::BCRYPT_USE_SYSTEM_PREFERRED_RNG)
30 panic!("couldn't generate random bytes: {}",
31 io::Error::last_os_error());