From 9c6ab5e7c3d4e79f2ce1c510339504df1ebd1257 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Sat, 11 Jan 2020 11:57:42 +0100 Subject: [PATCH] fix --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index cb831daa..ef50ed02 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -19,7 +19,7 @@ pub fn abort_on_panic(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;