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 }