We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40edecc commit 8e96243Copy full SHA for 8e96243
src/libstd/sys/unix/rand.rs
@@ -49,7 +49,9 @@ mod imp {
49
target_arch = "powerpc64",
50
target_arch = "s390x")))]
51
fn getrandom(buf: &mut [u8]) -> libc::c_long {
52
- #[cfg(target_arch = "x86_64")]
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
53
+ const NR_GETRANDOM: libc::c_long = 0x40000000 + 318;
54
+ #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
55
const NR_GETRANDOM: libc::c_long = 318;
56
#[cfg(target_arch = "x86")]
57
const NR_GETRANDOM: libc::c_long = 355;
0 commit comments