From 587004485115aba402b51619cdf07ef3f955aab4 Mon Sep 17 00:00:00 2001 From: Yuuki Takano Date: Wed, 25 Dec 2024 15:37:35 +0900 Subject: [PATCH] fix a bug Signed-off-by: Yuuki Takano --- futures-util/src/async_await/random.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-util/src/async_await/random.rs b/futures-util/src/async_await/random.rs index ef6b480e4..772995f2a 100644 --- a/futures-util/src/async_await/random.rs +++ b/futures-util/src/async_await/random.rs @@ -73,7 +73,7 @@ fn random() -> u64 { } let result = x.wrapping_mul(0x2545_f491_4f6c_dd1d) as u64; - RNG.store(result, Ordering::Relaxed); + RNG.store(result as usize, Ordering::Relaxed); result }