---
title: "rand 0.10.4 Breaking Changes on crates.io | Since.dev"
description: "What each rand release removed, renamed or changed: 196 breaking changes in 8 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/rand
last_updated: 2026-12-04
---

# rand breaking changes

rand 0.10.4 (November 15, 2026) is its newest release with breaking changes, 2 of them. The first: Signature changed rand::prelude::StdRng. Every breaking API change we have recorded in rand on crates.io: 196 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.10.4`, released November 15, 2026. [Source repository](https://github.com/rust-random/rand)

Its 0.8.0 release requires Rust 1.36 or later. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.8.0](#v-0-8-0) to [0.10.4](#v-0-10-4): 148 breaking changes in 7 versions.

## rand 0.10.4 breaking changes

rand 0.10.4, released November 15, 2026: 2 breaking changes.

- **Signature changed** `rand::prelude::StdRng`  

Was struct StdRng(Rng); now struct StdRng(ChaCha12Rng). [crates.io](https://crates.io/crates/rand/0.10.4)
- **Signature changed** `rand::rngs::StdRng`  

Was struct StdRng(Rng); now struct StdRng(ChaCha12Rng). [crates.io](https://crates.io/crates/rand/0.10.4)

## rand 0.10.0 breaking changes

rand 0.10.0, released February 8, 2026: 42 breaking changes.

- **Removed**  

Builds that enable the nightly feature will fail. [github.com](https://github.com/rust-random/rand/releases/tag/0.10.0)
- **Removed**  

Builds that enable the small_rng feature will fail. [github.com](https://github.com/rust-random/rand/releases/tag/0.10.0)
- **Removed** `rand::Fill::fill`  

rand::Fill::fill was removed in rand 0.10.0 [crates.io](https://crates.io/crates/rand/0.10.0)
- **Removed** `rand::prelude::RngCore`  

rand::prelude::RngCore was removed in rand 0.10.0 [crates.io](https://crates.io/crates/rand/0.10.0)
- **Removed** `rand::RngCore`  

rand::RngCore was removed in rand 0.10.0 [crates.io](https://crates.io/crates/rand/0.10.0)
- **Removed** `rand::rngs::mock`  

rand::rngs::mock was removed in rand 0.10.0 [crates.io](https://crates.io/crates/rand/0.10.0)
- **Removed** `rand::rngs::OsRng`  

Use SysRng in place of OsRng. [crates.io](https://crates.io/crates/rand/0.10.0)
- **Removed** `rand::rngs::ReseedingRng`  

Code that clones ReseedingRng will no longer compile. [crates.io](https://crates.io/crates/rand/0.10.0)
- **Removed** `rand::thread_rng`  

Use rng instead. [crates.io](https://crates.io/crates/rand/0.10.0)
- **Removed** `rand::TryRngCore`  

rand::TryRngCore was removed in rand 0.10.0 [crates.io](https://crates.io/crates/rand/0.10.0)

And 32 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## rand 0.9.2 breaking changes

rand 0.9.2, released July 20, 2025: 4 breaking changes.

- **Signature changed** `rand::prelude::IndexedRandom::choose_multiple`  

Was fn choose_multiple\<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter\<Self, Self::Output> where Self::Output: Sized, R: Rng + ?Sized,; now fn choose_multiple\<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter<'\_, Self... [crates.io](https://crates.io/crates/rand/0.9.2)
- **Signature changed** `rand::prelude::IndexedRandom::choose_multiple_weighted`  

Was fn choose_multiple_weighted\<R, F, X>(&self, rng: &mut R, amount: usize, weight: F) -> Result\<SliceChooseIter\<Self, Self::Output>, WeightError> where Self::Output: Sized, R: Rng + ?Sized, F: Fn(&Self::Output) -> X, X: Into\<f64>,; now fn... [crates.io](https://crates.io/crates/rand/0.9.2)
- **Signature changed** `rand::seq::IndexedRandom::choose_multiple`  

Was fn choose_multiple\<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter\<Self, Self::Output> where Self::Output: Sized, R: Rng + ?Sized,; now fn choose_multiple\<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter<'\_, Self... [crates.io](https://crates.io/crates/rand/0.9.2)
- **Signature changed** `rand::seq::IndexedRandom::choose_multiple_weighted`  

Was fn choose_multiple_weighted\<R, F, X>(&self, rng: &mut R, amount: usize, weight: F) -> Result\<SliceChooseIter\<Self, Self::Output>, WeightError> where Self::Output: Sized, R: Rng + ?Sized, F: Fn(&Self::Output) -> X, X: Into\<f64>,; now fn... [crates.io](https://crates.io/crates/rand/0.9.2)

## rand 0.9.1 breaking changes

rand 0.9.1, released April 17, 2025: 2 breaking changes.

- **Behavior changed** `IndexedRandom.choose_multiple_weighted`  

choose_multiple_weighted can return fewer than amount results again, reverting an undocumented change from 0.9.0. Code that expects exactly amount results must handle a shorter result. [github.com](https://github.com/rust-random/rand/releases/tag/0.9.1)
- **Behavior changed** `rand.seq.index.sample_weighted`  

sample_weighted can return fewer than amount results again, reverting an undocumented change from 0.9.0. Code that expects exactly amount results must handle a shorter result. [github.com](https://github.com/rust-random/rand/releases/tag/0.9.1)

## rand 0.9.0 breaking changes

rand 0.9.0, released January 27, 2025: 92 breaking changes.

- **Removed** `isize`  

StandardUniform, Uniform, Fill and WeightedAliasIndex no longer support isize and usize, except via UniformUsize. [github.com](https://github.com/rust-random/rand/releases/tag/0.9.0)
- **Removed** `rand_chacha`  

The implicit rand_chacha feature is removed; use std_rng instead. [github.com](https://github.com/rust-random/rand/releases/tag/0.9.0)
- **Removed** `rand::distributions`  

The rand::distributions module was renamed to rand::distr. [crates.io](https://crates.io/crates/rand/0.9.0)
- **Removed** `rand::Error`  

rand::Error was removed in rand 0.9.0 [crates.io](https://crates.io/crates/rand/0.9.0)
- **Removed** `rand::Fill::try_fill`  

rand::Fill::try_fill was removed in rand 0.9.0 [crates.io](https://crates.io/crates/rand/0.9.0)
- **Removed** `rand::prelude::random`  

rand::prelude::random was removed in rand 0.9.0 [crates.io](https://crates.io/crates/rand/0.9.0)
- **Removed** `rand::prelude::Rng::gen`  

rand::prelude::Rng::gen was removed in rand 0.9.0 [crates.io](https://crates.io/crates/rand/0.9.0)
- **Removed** `rand::prelude::Rng::try_fill`  

rand::prelude::Rng::try_fill was removed in rand 0.9.0 [crates.io](https://crates.io/crates/rand/0.9.0)
- **Removed** `rand::prelude::SliceRandom::choose`  

rand::prelude::SliceRandom::choose was removed in rand 0.9.0 [crates.io](https://crates.io/crates/rand/0.9.0)
- **Removed** `rand::prelude::SliceRandom::choose_multiple`  

rand::prelude::SliceRandom::choose_multiple was removed in rand 0.9.0 [crates.io](https://crates.io/crates/rand/0.9.0)

And 82 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## rand 0.8.6 breaking changes

rand 0.8.6, released April 17, 2026: 5 breaking changes.

- **Removed** `simd_support`  

The experimental simd_support cargo feature is removed. Code or Cargo.toml entries that enable it must stop using it. [github.com](https://github.com/rust-random/rand/releases/tag/0.8.6)
- **Signature changed** `rand::prelude::SliceRandom::choose_multiple`  

Was fn choose_multiple\<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter\<Self, Self::Item> where R: Rng + ?Sized; now fn choose_multiple\<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter<'\_, Self, Self::Item> where R: Rng +... [crates.io](https://crates.io/crates/rand/0.8.6)
- **Signature changed** `rand::prelude::SliceRandom::choose_multiple_weighted`  

Was fn choose_multiple_weighted\<R, F, X>(&self, rng: &mut R, amount: usize, weight: F) -> Result\<SliceChooseIter\<Self, Self::Item>, WeightedError> where R: Rng + ?Sized, F: Fn(&Self::Item) -> X, X: Into\<f64>; now fn... [crates.io](https://crates.io/crates/rand/0.8.6)
- **Signature changed** `rand::seq::SliceRandom::choose_multiple`  

Was fn choose_multiple\<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter\<Self, Self::Item> where R: Rng + ?Sized; now fn choose_multiple\<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter<'\_, Self, Self::Item> where R: Rng +... [crates.io](https://crates.io/crates/rand/0.8.6)
- **Signature changed** `rand::seq::SliceRandom::choose_multiple_weighted`  

Was fn choose_multiple_weighted\<R, F, X>(&self, rng: &mut R, amount: usize, weight: F) -> Result\<SliceChooseIter\<Self, Self::Item>, WeightedError> where R: Rng + ?Sized, F: Fn(&Self::Item) -> X, X: Into\<f64>; now fn... [crates.io](https://crates.io/crates/rand/0.8.6)

## Older versions

2 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### rand 0.8.5 breaking changes

rand 0.8.5, released February 14, 2022: 1 breaking change.

- **Behavior changed** `StdRng`  

StdRng now uses ChaCha12 on emscripten instead of HC128, so random sequences produced on that platform change. [github.com](https://github.com/rust-random/rand/blob/0.8.5/CHANGELOG.md)

### rand 0.8.0 breaking changes

rand 0.8.0, released December 18, 2020: 48 breaking changes.

- **Removed** `gen_range`  

Call gen_range(a..b) or gen_range(a..=b) instead; a and b can no longer be references or SIMD types. [github.com](https://github.com/rust-random/rand/blob/0.8.0/CHANGELOG.md)
- **Removed** `rand::AsByteSliceMut`  

Use Fill instead of AsByteSliceMut. [crates.io](https://crates.io/crates/rand/0.8.0)

And 46 more in this version.

## Related packages

- [rand_chacha](https://since.dev/packages/crates/rand%5Fchacha.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
