diff --git a/src/backends/rdrand.rs b/src/backends/rdrand.rs index 67dc7129..347786a5 100644 --- a/src/backends/rdrand.rs +++ b/src/backends/rdrand.rs @@ -144,7 +144,7 @@ unsafe fn rdrand_u32() -> Option { unsafe fn rdrand_u64() -> Option { 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 {