Skip to content

Commit

Permalink
Auto merge of rust-lang#27310 - akiss77:fix-aarch64-getrandom, r=alex…
Browse files Browse the repository at this point in the history
…crichton
  • Loading branch information
bors committed Jul 27, 2015
2 parents 57f7fb6 + 286b337 commit 3351afe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/rand/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ mod imp {
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", target_arch = "powerpc"))]
#[cfg(any(target_arch = "arm", target_arch = "powerpc"))]
const NR_GETRANDOM: libc::c_long = 384;
#[cfg(any(target_arch = "aarch64"))]
const NR_GETRANDOM: libc::c_long = 278;

unsafe {
syscall(NR_GETRANDOM, buf.as_mut_ptr(), buf.len(), 0)
Expand Down

0 comments on commit 3351afe

Please sign in to comment.