Sourced from rand's changelog.
[0.10.2] — 2026-07-02
Fixes
- Fix possible memory safety violation due to deserialization of
UniformCharfrom bad source (#1790)Changes
- Document required output order of fn
partial_shuffleand apply#[must_use](#1769)- Avoid usage of
unsafein contexts where non-local memory corruption could invalidate contract (#1791)#1769: rust-random/rand#1769 #1790: rust-random/rand#1790 #1791: rust-random/rand#1791
[0.10.1] — 2026-02-11
This release includes a fix for a soundness bug; see #1763.
Changes
#1761: rust-random/rand#1761 #1763: rust-random/rand#1763
[0.10.0] - 2026-02-08
Changes
- The dependency on
rand_chachahas been replaced with a dependency onchacha20. This changes the implementation behindStdRng, but the output remains the same. There may be some API breakage when using the ChaCha-types directly as these are now the ones inchacha20instead ofrand_chacha(#1642).- Rename fns
IndexedRandom::choose_multiple->sample,choose_multiple_array->sample_array,choose_multiple_weighted->sample_weighted, structSliceChooseIter->IndexedSamplesand fnsIteratorRandom::choose_multiple->sample,choose_multiple_fill->sample_fill(#1632)- Use Edition 2024 and MSRV 1.85 (#1653)
- Let
Fillbe implemented for element types, not sliceable types (#1652)- Fix
OsError::raw_os_erroron UEFI targets by returningOption<usize>(#1665)- Replace fn
TryRngCore::read_adapter(..) -> RngReadAdapterwith simpler structRngReader(#1669)- Remove fns
SeedableRng::from_os_rng,try_from_os_rng(#1674)- Remove
Clonesupport forStdRng,ReseedingRng(#1677)- Use
postcardinstead ofbincodeto test the serde feature (#1693)- Avoid excessive allocation in
IteratorRandom::samplewhenamountis much larger than iterator size (#1695)- Rename
os_rng->sys_rng,OsRng->SysRng,OsError->SysError(#1697)- Rename
Rng->RngExtas upstreamrand_corehas renamedRngCore->Rng(#1717)Additions
- Add fns
IndexedRandom::choose_iter,choose_weighted_iter(#1632)- Pub export
Xoshiro128PlusPlus,Xoshiro256PlusPlusprngs (#1649)- Pub export
ChaCha8Rng,ChaCha12Rng,ChaCha20Rngbehindchachafeature (#1659)- Fn
rand::make_rng() -> R where R: SeedableRng(#1734)Removals
... (truncated)
1540ea3
Prepare rand 0.10.2 (#1800)a29964a
Bump chacha20 from 0.10.0 to 0.10.1 in the all-deps group (#1801)ced9491
Tweak docs for RngExt::random_range and SampleRange (#1798)db14664
Check UniformChar validity on deser (#1790)bea8620
Bump the all-deps group with 2 updates (#1796)4f44932
Bump actions/cache from 5 to 6 (#1795)b999a13
Bump actions/checkout from 6 to 7 (#1794)aeab810
Avoid unsafe where safety depends on non-local values (#1791)1896d7c
Add typos CI job (#1789)43eddee
Bump the all-deps group with 2 updates (#1788)