We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6839b49 commit db5963bCopy full SHA for db5963b
library/std/src/sys/pal/zkvm/mod.rs
@@ -62,11 +62,11 @@ pub fn abort_internal() -> ! {
62
}
63
64
pub fn hashmap_random_keys() -> (u64, u64) {
65
- let mut buf = [0u32; 16];
+ let mut buf = [0u8; 16];
66
unsafe {
67
abi::sys_rand(buf.as_mut_ptr(), buf.len());
68
};
69
let a = u64::from_le_bytes(buf[0..8].try_into().unwrap());
70
let b = u64::from_le_bytes(buf[8..16].try_into().unwrap());
71
(a, b)
72
-}
+}
0 commit comments