Skip to content

Commit db5963b

Browse files
committed
fix: pal needs u8
1 parent 6839b49 commit db5963b

File tree

1 file changed

+2
-2
lines changed
  • library/std/src/sys/pal/zkvm

1 file changed

+2
-2
lines changed

library/std/src/sys/pal/zkvm/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ pub fn abort_internal() -> ! {
6262
}
6363

6464
pub fn hashmap_random_keys() -> (u64, u64) {
65-
let mut buf = [0u32; 16];
65+
let mut buf = [0u8; 16];
6666
unsafe {
6767
abi::sys_rand(buf.as_mut_ptr(), buf.len());
6868
};
6969
let a = u64::from_le_bytes(buf[0..8].try_into().unwrap());
7070
let b = u64::from_le_bytes(buf[8..16].try_into().unwrap());
7171
(a, b)
72-
}
72+
}

0 commit comments

Comments
 (0)