提交 ad39fcc5 编写于 作者: C Cruz Julian Bishop

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 :)
上级 b213c947
......@@ -41,9 +41,7 @@ fn getrandom(buf: &mut [u8]) -> libc::c_long {
const NR_GETRANDOM: libc::c_long = 318;
#[cfg(target_arch = "x86")]
const NR_GETRANDOM: libc::c_long = 355;
#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
const NR_GETRANDOM: libc::c_long = 384;
#[cfg(target_arch = "powerpc")]
#[cfg(any(target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc"))]
const NR_GETRANDOM: libc::c_long = 384;
unsafe {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册