mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
fix
This commit is contained in:
parent
9c9ab90da3
commit
9c6ab5e7c3
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ pub fn abort_on_panic<T>(f: impl FnOnce() -> T) -> T {
|
|||
}
|
||||
|
||||
/// Generates a random number in `0..n`.
|
||||
#[cfg(feature = "unstable")]
|
||||
#[cfg(any(feature = "unstable", feature = "default"))]
|
||||
pub fn random(n: u32) -> u32 {
|
||||
use std::cell::Cell;
|
||||
use std::num::Wrapping;
|
||||
|
|
Loading…
Reference in a new issue