Skip to content

Commit 3351afe

Browse files
committed
Auto merge of #27310 - akiss77:fix-aarch64-getrandom, r=alexcrichton
2 parents 57f7fb6 + 286b337 commit 3351afe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/rand/os.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ mod imp {
4141
const NR_GETRANDOM: libc::c_long = 318;
4242
#[cfg(target_arch = "x86")]
4343
const NR_GETRANDOM: libc::c_long = 355;
44-
#[cfg(any(target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc"))]
44+
#[cfg(any(target_arch = "arm", target_arch = "powerpc"))]
4545
const NR_GETRANDOM: libc::c_long = 384;
46+
#[cfg(any(target_arch = "aarch64"))]
47+
const NR_GETRANDOM: libc::c_long = 278;
4648

4749
unsafe {
4850
syscall(NR_GETRANDOM, buf.as_mut_ptr(), buf.len(), 0)

0 commit comments

Comments
 (0)