Skip to content

Commit

Permalink
fix compilation on i686
Browse files Browse the repository at this point in the history
  • Loading branch information
usamoi committed Dec 18, 2024
1 parent 2d05547 commit 0ef870e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/rdrand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ unsafe fn rdrand_u32() -> Option<u32> {
unsafe fn rdrand_u64() -> Option<u64> {
let a = rdrand()?;
let b = rdrand()?;
Some((u64::from(a) << 32) || u64::from(b))
Some((u64::from(a) << 32) | u64::from(b))
}

pub fn inner_u32() -> Result<u32, Error> {
Expand Down

0 comments on commit 0ef870e

Please sign in to comment.