From db2b1e0bb41b0a1435b9fecaa1b7bdb531183204 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Fri, 21 Feb 2025 16:09:57 -0800 Subject: [PATCH] rand: re-export `rand_core` --- CHANGELOG.md | 1 + src/lib.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 450483f7b26..b80b9bcc1e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ You may also find the [Upgrade Guide](https://rust-random.github.io/book/update. ## [Unreleased] - Fix feature `simd_support` for recent nightly rust (#1586) - Add `Alphabetic` distribution. (#1587) +- Re-export `rand_core` (#1602) ## [0.9.0] - 2025-01-27 ### Security and unsafe diff --git a/src/lib.rs b/src/lib.rs index d3ab8364aa7..5cb71b8bde2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -96,6 +96,9 @@ macro_rules! error { ($($x:tt)*) => ( } ) } +// Re-export rand_core itself +pub use rand_core; + // Re-exports from rand_core pub use rand_core::{CryptoRng, RngCore, SeedableRng, TryCryptoRng, TryRngCore};