Add initial implementation of random module with submodules and prelude exports

This commit is contained in:
Palash Tyagi 2025-07-28 20:19:12 +01:00
parent 28793e5b07
commit 5a5baf9716

14
src/random/mod.rs Normal file
View File

@ -0,0 +1,14 @@
pub mod crypto;
pub mod prng;
pub mod random_core;
pub mod seq;
pub use crypto::{crypto_rng, CryptoRng};
pub use prng::{rng, Prng};
pub use random_core::{RangeSample, Rng};
pub use seq::SliceRandom;
pub mod prelude {
pub use super::seq::SliceRandom;
pub use super::{crypto_rng, rng, CryptoRng, Prng, RangeSample, Rng};
}