5.1 KiB
5.1 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[0.9.5] — 2026-01-13
- Try again:
auto_cfg->doc_cfg(#48)
[0.9.4] — 2026-01-12
- Doc fix for merge of
doc_auto_cfgintodoc_cfg(#46)
[0.9.3] — 2025-02-29
Other
- Remove
zerocopydependency (#1607) - Deprecate
rand_core::impls::fill_via_u32_chunks,fill_via_u64_chunks(#1607)
[0.9.2] - 2025-02-22
API changes
- Relax
Sizedbound on impls ofTryRngCore,TryCryptoRngandUnwrapMut(#1593) - Add
UnwrapMut::reto reborrow the inner rng with a tighter lifetime (#1595)
[0.9.1] - 2025-02-16
API changes
- Add
TryRngCore::unwrap_mut, providing an impl ofRngCoreover&mut rng(#1589)
[0.9.0] - 2025-01-27
Dependencies and features
- Bump the MSRV to 1.63.0 (#1207, #1246, #1269, #1341, #1416, #1536); note that 1.60.0 may work for dependents when using
--ignore-rust-version - Update to
getrandomv0.3.0 (#1558) - Use
zerocopyto replace someunsafecode (#1349, #1393, #1446, #1502) - Rename feature
serde1toserde(#1477) - Rename feature
getrandomtoos_rng(#1537)
API changes
- Allow
rand_core::impls::fill_via_u*_chunksto mutate source (#1182) - Add fn
RngCore::read_adapterimplementingstd::io::Read(#1267) - Add trait
CryptoBlockRng: BlockRngCore; maketrait CryptoRng: RngCorereplacingCryptoRngCore(#1273) - Add traits
TryRngCore,TryCryptoRng(#1424, #1499) - Rename
fn SeedableRng::from_rng->try_from_rngand add infallible variantfn from_rng(#1424) - Rename
fn SeedableRng::from_entropy->from_os_rngand add fallible variantfn try_from_os_rng(#1424) - Add bounds
CloneandAsRefto associated typeSeedableRng::Seed(#1491)
[0.6.4] - 2022-09-15
- Fix unsoundness in
<BlockRng64 as RngCore>::next_u32(#1160) - Reduce use of
unsafeand improve gen_bytes performance (#1180) - Add
CryptoRngCoretrait (#1187, #1230)
[0.6.3] - 2021-06-15
Changed
- Improved bound for
serdeimpls onBlockRng(#1130) - Minor doc additions (#1118)
[0.6.2] - 2021-02-12
Fixed
- Fixed assertions in
le::read_u32_intoandle::read_u64_intowhich could have allowed buffers not to be fully populated (#1096)
[0.6.1] - 2021-01-03
Fixed
- Avoid panic when using
RngCore::seed_from_u64with a seed which is not a multiple of four (#1082)
Other
- Enable all stable features in the playground (#1081)
[0.6.0] - 2020-12-08
Breaking changes
- Bump MSRV to 1.36, various code improvements (#1011)
- Update to getrandom v0.2 (#1041)
- Fix:
next_u32_via_fillandnext_u64_via_fillnow use LE as documented (#1061)
Other
- Reduce usage of
unsafe(#962, #963, #1011) - Annotate feature-gates in documentation (#1019)
- Document available error codes (#1061)
- Various documentation tweaks
- Fix some clippy warnings (#1036)
- Apply rustfmt (#926)
[0.5.1] - 2019-08-28
OsRngadded torand_core(#863)Error::INTERNAL_STARTandError::CUSTOM_STARTconstants (#864)Error::raw_os_errormethod (#864)DebugandDisplayformatting forgetrandomerror codes withoutstd(#864)
Changed
allocfeature inno_stdis available since Rust 1.36 (#856)- Added
#[inline]toErrorconversion methods (#864)
[0.5.0] - 2019-06-06
Changed
- Enable testing with Miri and fix incorrect pointer usages (#779, #780, #781, #783, #784)
- Rewrite
Errortype and adjust API (#800) - Adjust usage of
#[inline]forBlockRngandBlockRng64
[0.4.0] - 2019-01-24
Changed
- Disable the
stdfeature by default (#702)
[0.3.0] - 2018-09-24
Added
- Add
SeedableRng::seed_from_u64for convenient seeding. (#537)
[0.2.1] - 2018-06-08
Added
- References to a
CryptoRngnow also implementCryptoRng. (#470)
[0.2.0] - 2018-05-21
Changed
- Enable the
stdfeature by default. (#409) - Remove
BlockRng{64}::innerandBlockRng::inner_mut; instead makingcorepublic - Change
BlockRngCore::Resultsbound to also requireAsMut<[Self::Item]>. (#419)
Added
- Add
BlockRng{64}::indexandBlockRng{64}::generate_and_set. (#374, #419) - Implement
std::io::Readfor RngCore. (#434)
[0.1.0] - 2018-04-17
(Split out of the Rand crate, changes here are relative to rand 0.4.2.)
Added
RngCoreandSeedableRngare now part ofrand_core. (#288)- Add modules to help implementing RNGs
implandle. (#209, #228) - Add
ErrorandErrorKind. (#225) - Add
CryptoRngmarker trait. (#273) - Add
BlockRngCoretrait. (#281) - Add
BlockRngandBlockRng64wrappers to help implementations. (#281, #325) - Add
RngCore::try_fill_bytes. (#225)
Changed
- Revise the
SeedableRngtrait. (#233) - Remove default implementations for
RngCore::next_u64andRngCore::fill_bytes. (#288)
[0.0.1] - 2017-09-14 (yanked)
Experimental version as part of the rand crate refactor.