We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9ab90 commit 9c6ab5eCopy full SHA for 9c6ab5e
src/utils.rs
@@ -19,7 +19,7 @@ pub fn abort_on_panic<T>(f: impl FnOnce() -> T) -> T {
19
}
20
21
/// Generates a random number in `0..n`.
22
-#[cfg(feature = "unstable")]
+#[cfg(any(feature = "unstable", feature = "default"))]
23
pub fn random(n: u32) -> u32 {
24
use std::cell::Cell;
25
use std::num::Wrapping;
0 commit comments