Skip to content

Commit ad39fcc

Browse files
committed
libstd/rand/os.rs: Remove a tiny bit of duplicated code
It's nearly midnight. I'm tired. I'll look for something worth doing in the morning :)
1 parent b213c94 commit ad39fcc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libstd/rand/os.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ 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"))]
45-
const NR_GETRANDOM: libc::c_long = 384;
46-
#[cfg(target_arch = "powerpc")]
44+
#[cfg(any(target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc"))]
4745
const NR_GETRANDOM: libc::c_long = 384;
4846

4947
unsafe {

0 commit comments

Comments
 (0)