---
title: "fastrand 2.0.0 Breaking Changes on crates.io | Since.dev"
description: "What each fastrand release removed, renamed or changed: 14 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/fastrand
last_updated: 2026-12-04
---

# fastrand breaking changes

fastrand 2.0.0 (June 9, 2023) is its newest release with breaking changes, 14 of them. The first: Behavior changed Rng. Every breaking API change we have recorded in fastrand on crates.io: 14 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.5.0`, released July 19, 2026. [Source repository](https://github.com/smol-rs/fastrand)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## fastrand 2.0.0 breaking changes

fastrand 2.0.0, released June 9, 2023: 14 breaking changes.

- **Behavior changed** `Rng`  

Rng methods that previously took a shared reference now require mutable access, so existing code that relied on interior mutability must be updated. [github.com](https://github.com/smol-rs/fastrand/releases/tag/v2.0.0)
- **Signature changed** `fastrand::Rng`  

Was struct Rng(Cell\<u64>); now struct Rng(u64). [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::alphabetic`  

Was fn alphabetic(&self) -> char; now fn alphabetic(&mut self) -> char. [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::alphanumeric`  

Was fn alphanumeric(&self) -> char; now fn alphanumeric(&mut self) -> char. [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::bool`  

Was fn bool(&self) -> bool; now fn bool(&mut self) -> bool. [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::char`  

Was fn char(&self, range: impl RangeBounds\<char>) -> char; now fn char(&mut self, range: impl RangeBounds\<char>) -> char. [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::digit`  

Was fn digit(&self, base: u32) -> char; now fn digit(&mut self, base: u32) -> char. [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::f32`  

Was fn f32(&self) -> f32; now fn f32(&mut self) -> f32. [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::f64`  

Was fn f64(&self) -> f64; now fn f64(&mut self) -> f64. [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::fill`  

Was fn fill(&self, slice: &mut \[u8\]); now fn fill(&mut self, slice: &mut \[u8\]). [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::lowercase`  

Was fn lowercase(&self) -> char; now fn lowercase(&mut self) -> char. [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::seed`  

Was fn seed(&self, seed: u64); now fn seed(&mut self, seed: u64). [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::shuffle`  

Was fn shuffle\<T>(&self, slice: &mut \[T\]); now fn shuffle\<T>(&mut self, slice: &mut \[T\]). [crates.io](https://crates.io/crates/fastrand/2.0.0)
- **Signature changed** `fastrand::Rng::uppercase`  

Was fn uppercase(&self) -> char; now fn uppercase(&mut self) -> char. [crates.io](https://crates.io/crates/fastrand/2.0.0)

## 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.
