Releases: rust-random/rand_core
Releases · rust-random/rand_core
v0.10.0
What's Changed
This release makes a number of significant changes which we hope will be the last significant breakage before 1.0. Code has moved from the rust-random/rand repository to its own rust-random/rand_core.
User-facing API changes
Changed
- Edition changed to 2024 and MSRV bumped to 1.85 (rand#1668)
RngCoreandTryRngCoreare renamed toRngandTryRngrespectively (#54)Rngis now an extension trait ofTryRng<Error = Infallible>(#45)TryRng::Erroris bound oncore::error::Errorinstead ofDebug + Display(#58)- Relax
Sizedbound on impls ofSeedableRng(rand#1641)
Added
Removed
TryRng::read_adaptermethod (replaced withrand::RngReader) (rand#1669)os_rngcrate feature (rand#1674)OsRngandOsErrorstructs (rand#1674)SeedableRng::from_os_rngandSeedableRng::try_from_os_rngmethods (rand#1674)getrandomdependency (rand#1674)stdcrate feature (rand#1674)- Optional
serdedependency (#28) UnwrapMutstruct andRng::unwrap_mutmethod (#45)Rng::unwrap_errmethod in favor of explicit wrapping inUnwrapErr(#53)
API changes to PRNG implementation helpers
Added
BlockRng::reconstructandBlockRng::remaining_resultsmethods (#36)block::Generator::dropmethod (#35)BlockRng::word_offsetmethod (#44)
Changed
- Replaced
lehelper functions with newutilshelpers (rand#1667, #34, #38, #45) - Rename
BlockRng::generate_and_setmethod toreset_and_skip(#44) - Rename
block::BlockRngCoretrait toblock::Generator(#26) - Rename
BlockRngCore::Resultsassociated type toOutputand remove type bounds on it (#26)
Removed
- Implementation of
RngforBlockRng, making the latter more generic (#34) BlockRng64struct (#34)BlockRng::resetmethod (#44)BlockRng::indexmethod (replaced withBlockRng::word_offset) (#44)Generator::Itemassociated type (#26)CryptoBlockRng(#69)
New Contributors
Full Changelog: v0.9.3...v0.10.0