Skip to content

Releases: rust-random/rand

0.9.5

Choose a tag to compare

@dhardy dhardy released this 11 Jul 11:19
3474ec0

What's Changed

Full Changelog: 0.9.4...0.9.5

0.8.7

Choose a tag to compare

@dhardy dhardy released this 11 Jul 11:19
90ff85e

What's Changed

Full Changelog: 0.8.6...0.8.7

0.10.2

Choose a tag to compare

@dhardy dhardy released this 02 Jul 09:02
1540ea3

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: 0.10.1...0.10.2

0.8.6

Choose a tag to compare

@dhardy dhardy released this 17 Apr 06:44
5309f25

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: 0.8.5...0.8.6

0.9.4

Choose a tag to compare

@dhardy dhardy released this 13 Apr 15:42
ba4c4c6

Fixes

Full Changelog: 0.9.3...0.9.4

0.10.1

Choose a tag to compare

@dhardy dhardy released this 13 Apr 15:43
27ff4cb

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: 0.10.0...0.10.1

0.9.3

Choose a tag to compare

@dhardy dhardy released this 13 Apr 15:42
1aeee9f

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: 0.9.2...0.9.3

0.10.0

Choose a tag to compare

@dhardy dhardy released this 14 Feb 07:28
acc5f24

[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: 0.9.2...0.10.0

0.9.2

Choose a tag to compare

@dhardy dhardy released this 13 Apr 15:41
98473ee

Deprecated

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

Additions

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

Full Changelog: 0.9.1...0.9.2

rand v0.9.1

Choose a tag to compare

@dhardy dhardy released this 17 Apr 14:40
db993ec

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: 0.9.0...0.9.1