Skip to content

Commit

Permalink
Fix cfg for rand::random
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 30, 2024
1 parent 0128160 commit 31e6aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ use crate::distr::{Distribution, Standard};
///
/// [`Standard`]: distr::Standard
/// [`ThreadRng`]: rngs::ThreadRng
#[cfg(all(feature = "std", feature = "std_rng", feature = "getrandom"))]
#[cfg(feature = "thread_rng")]
#[inline]
pub fn random<T>() -> T
where
Expand Down

0 comments on commit 31e6aa0

Please sign in to comment.