rust-random/rand
 Watch   
 Star   
 Fork   
20 days ago
rand

0.8.7

What's Changed

Full Changelog: https://github.com/rust-random/rand/compare/0.8.6...0.8.7

20 days ago
rand

0.9.5

What's Changed

Full Changelog: https://github.com/rust-random/rand/compare/0.9.4...0.9.5

29 days ago
rand

0.10.2

Fixes

  • Fix possible memory safety violation due to deserialization of UniformChar from bad source (#1790)

Changes

  • Document required output order of fn partial_shuffle and apply #[must_use] (#1769)
  • Avoid usage of unsafe in contexts where non-local memory corruption could invalidate contract (#1791)

Full Changelog: https://github.com/rust-random/rand/compare/0.10.1...0.10.2

2026-04-17 03:40:32
rand

0.8.6

What's Changed

This release back-ports a fix from v0.10. See also #1763.

Changes

  • Deprecate feature log (#1772)
  • Drop the experimental simd_support feature.

New Contributors

Full Changelog: https://github.com/rust-random/rand/compare/0.8.5...0.8.6

2026-04-13 23:07:33
rand
2026-04-11 18:34:43
rand

0.10.1

This release includes a fix for a soundness bug; see #1763.

Changes

  • Document panic behavior of make_rng and add #[track_caller] (#1761)
  • Deprecate feature log (#1763)

Full Changelog: https://github.com/rust-random/rand/compare/0.10.0...0.10.1

2026-04-11 18:15:05
rand

0.9.3

This release back-ports a fix from v0.10. See also [#1763].

Changes

  • Deprecate feature log (#1764)
  • Replace usages of doc_auto_cfg (#1764)

Full Changelog: https://github.com/rust-random/rand/compare/0.9.2...0.9.3

2026-02-08 21:32:11
rand

0.10.0

[0.10.0] - 2026-02-08

Changes

  • The dependency on rand_chacha has been replaced with a dependency on chacha20. This changes the implementation behind StdRng, but the output remains the same. There may be some API breakage when using the ChaCha-types directly as these are now the ones in chacha20 instead of rand_chacha (#1642).
  • Rename fns IndexedRandom::choose_multiple -> sample, choose_multiple_array -> sample_array, choose_multiple_weighted -> sample_weighted, struct SliceChooseIter -> IndexedSamples and fns IteratorRandom::choose_multiple -> sample, choose_multiple_fill -> sample_fill (#1632)
  • Use Edition 2024 and MSRV 1.85 (#1653)
  • Let Fill be implemented for element types, not sliceable types (#1652)
  • Fix OsError::raw_os_error on UEFI targets by returning Option<usize> (#1665)
  • Replace fn TryRngCore::read_adapter(..) -> RngReadAdapter with simpler struct RngReader (#1669)
  • Remove fns SeedableRng::from_os_rng, try_from_os_rng (#1674)
  • Remove Clone support for StdRng, ReseedingRng (#1677)
  • Use postcard instead of bincode to test the serde feature (#1693)
  • Avoid excessive allocation in IteratorRandom::sample when amount is much larger than iterator size (#1695)
  • Rename os_rng -> sys_rng, OsRng -> SysRng, OsError -> SysError (#1697)
  • Rename Rng -> RngExt as upstream rand_core has renamed RngCore -> Rng (#1717)

Additions

  • Add fns IndexedRandom::choose_iter, choose_weighted_iter (#1632)
  • Pub export Xoshiro128PlusPlus, Xoshiro256PlusPlus prngs (#1649)
  • Pub export ChaCha8Rng, ChaCha12Rng, ChaCha20Rng behind chacha feature (#1659)
  • Fn rand::make_rng() -> R where R: SeedableRng (#1734)

Removals

  • Removed ReseedingRng (#1722)
  • Removed unused feature "nightly" (#1732)
  • Removed feature small_rng (#1732)

New Contributors

Full Changelog: https://github.com/rust-random/rand/compare/0.9.2...0.10.0

2025-07-21 01:46:31
rand

0.9.2

Deprecated

  • Deprecate rand::rngs::mock module and StepRng generator (#1634)

Additions

  • Enable WeightedIndex<usize> (de)serialization (#1646)

Full Changelog: https://github.com/rust-random/rand/compare/0.9.1...0.9.2

2025-04-17 22:34:12
rand

rand v0.9.1

Changelog

Security and unsafe

  • Revise "not a crypto library" policy again (#1565)
  • Remove zerocopy dependency from rand (#1579)

Fixes

  • Fix feature simd_support for recent nightly rust (#1586)

Changes

  • Allow fn rand::seq::index::sample_weighted and fn IndexedRandom::choose_multiple_weighted to return fewer than amount results (#1623), reverting an undocumented change (#1382) to the previous release.

Additions

  • Add rand::distr::Alphabetic distribution. (#1587)
  • Re-export rand_core (#1604)

New Contributors

Full Changelog: https://github.com/rust-random/rand/compare/0.9.0...0.9.1