From b71bf7e12513ebfcff561f49b12f7455826132f3 Mon Sep 17 00:00:00 2001 From: Yuuki Takano Date: Tue, 14 Jan 2025 14:50:11 +0900 Subject: [PATCH] fix: typo s/random_nostd/random/ 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 8f9dd72f2..259a68052 100644 --- a/futures-util/src/async_await/random.rs +++ b/futures-util/src/async_await/random.rs @@ -53,7 +53,7 @@ fn random() -> u64 { } #[cfg(not(feature = "std"))] -fn random_nostd() -> u64 { +fn random() -> u64 { use core::sync::atomic::{AtomicUsize, Ordering}; static RNG: AtomicUsize = AtomicUsize::new(1);