From 0ef870e7f44714dd50f8128d8912a3a3caa1436e Mon Sep 17 00:00:00 2001 From: usamoi Date: Wed, 18 Dec 2024 19:40:33 +0800 Subject: [PATCH] fix compilation on i686 --- src/backends/rdrand.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {