diff --git a/CHANGELOG.md b/CHANGELOG.md index 450483f7b26..b2888658277 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 `UnwrapMut` and `UnwrapErr` from `rand_core` (#1594) ## [0.9.0] - 2025-01-27 ### Security and unsafe diff --git a/Cargo.toml b/Cargo.toml index c01fcd85e08..912cd748533 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,7 +71,7 @@ members = [ exclude = ["benches", "distr_test"] [dependencies] -rand_core = { path = "rand_core", version = "0.9.0", default-features = false } +rand_core = { path = "rand_core", version = "0.9.1", default-features = false } log = { version = "0.4.4", optional = true } serde = { version = "1.0.103", features = ["derive"], optional = true } rand_chacha = { path = "rand_chacha", version = "0.9.0", default-features = false, optional = true } diff --git a/src/lib.rs b/src/lib.rs index d3ab8364aa7..66bc162a7cf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -97,7 +97,9 @@ macro_rules! error { ($($x:tt)*) => ( ) } // Re-exports from rand_core -pub use rand_core::{CryptoRng, RngCore, SeedableRng, TryCryptoRng, TryRngCore}; +pub use rand_core::{ + CryptoRng, RngCore, SeedableRng, TryCryptoRng, TryRngCore, UnwrapErr, UnwrapMut, +}; // Public modules pub mod distr;