Skip to content

Upgrade rand from 0.8.5 to 0.9.2 #1819

@dannywillems

Description

@dannywillems

Summary

Upgrade the rand dependency from version 0.8.5 to 0.9.2.

Related PR

Parent Issue

Details

This is a major version upgrade that includes:

  • MSRV bump to 1.63.0
  • Update to rand_core v0.9.0
  • Renamed rand::thread_rng() to rand::rng()
  • Renamed Rng::gen to random (to avoid conflict with Rust 2024 gen keyword)
  • Renamed Rng::gen_range to random_range, gen_bool to random_bool, etc.
  • Module rename: rand::distributions to rand::distr
  • Distribution rename: Standard to StandardUniform
  • Feature renames (serde1 to serde, getrandom to os_rng)
  • New traits: TryRngCore, TryCryptoRng

See the rand 0.9.0 upgrade guide for migration details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filerustPull requests that update Rust code

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions