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
On this page
Latest version 2.5.0, released July 19, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
fastrand 2.0.0 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 - Signature changed
fastrand::Rng
Was struct Rng(Cell<u64>); now struct Rng(u64). crates.io - Signature changed
fastrand::Rng::alphabetic
Was fn alphabetic(&self) -> char; now fn alphabetic(&mut self) -> char. crates.io - Signature changed
fastrand::Rng::alphanumeric
Was fn alphanumeric(&self) -> char; now fn alphanumeric(&mut self) -> char. crates.io - Signature changed
fastrand::Rng::bool
Was fn bool(&self) -> bool; now fn bool(&mut self) -> bool. crates.io - 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 - Signature changed
fastrand::Rng::digit
Was fn digit(&self, base: u32) -> char; now fn digit(&mut self, base: u32) -> char. crates.io - Signature changed
fastrand::Rng::f32
Was fn f32(&self) -> f32; now fn f32(&mut self) -> f32. crates.io - Signature changed
fastrand::Rng::f64
Was fn f64(&self) -> f64; now fn f64(&mut self) -> f64. crates.io - Signature changed
fastrand::Rng::fill
Was fn fill(&self, slice: &mut [u8]); now fn fill(&mut self, slice: &mut [u8]). crates.io - Signature changed
fastrand::Rng::lowercase
Was fn lowercase(&self) -> char; now fn lowercase(&mut self) -> char. crates.io - Signature changed
fastrand::Rng::seed
Was fn seed(&self, seed: u64); now fn seed(&mut self, seed: u64). crates.io - Signature changed
fastrand::Rng::shuffle
Was fn shuffle<T>(&self, slice: &mut [T]); now fn shuffle<T>(&mut self, slice: &mut [T]). crates.io - Signature changed
fastrand::Rng::uppercase
Was fn uppercase(&self) -> char; now fn uppercase(&mut self) -> char. crates.io
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.