Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update rust crate rand_distr to 0.5 #2089

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 27, 2025

This PR contains the following updates:

Package Type Update Change
rand_distr (source) workspace.dependencies minor 0.4 -> 0.5

Release Notes

rust-random/rand (rand_distr)

v0.5.0

Crate features and organisation
  • Minimum Rust version update: 1.22.0. (#​239)
  • Create a separate rand_core crate. (#​288)
  • Deprecate rand_derive. (#​256)
  • Add prelude (and module reorganisation). (#​435)
  • Add log feature. Logging is now available in JitterRng, OsRng, EntropyRng and ReseedingRng. (#​246)
  • Add serde1 feature for some PRNGs. (#​189)
  • stdweb feature for OsRng support on WASM via stdweb. (#​272, #​336)
Rng trait
  • Split Rng in RngCore and Rng extension trait.
    next_u32, next_u64 and fill_bytes are now part of RngCore. (#​265)
  • Add Rng::sample. (#​256)
  • Deprecate Rng::gen_weighted_bool. (#​308)
  • Add Rng::gen_bool. (#​308)
  • Remove Rng::next_f32 and Rng::next_f64. (#​273)
  • Add optimized Rng::fill and Rng::try_fill methods. (#​247)
  • Deprecate Rng::gen_iter. (#​286)
  • Deprecate Rng::gen_ascii_chars. (#​279)
rand_core crate
  • rand now depends on new rand_core crate (#​288)
  • RngCore and SeedableRng are now part of rand_core. (#​288)
  • Add modules to help implementing RNGs impl and le. (#​209, #​228)
  • Add Error and ErrorKind. (#​225)
  • Add CryptoRng marker trait. (#​273)
  • Add BlockRngCore trait. (#​281)
  • Add BlockRng and BlockRng64 wrappers to help implementations. (#​281, #​325)
  • Revise the SeedableRng trait. (#​233)
  • Remove default implementations for RngCore::next_u64 and RngCore::fill_bytes. (#​288)
  • Add RngCore::try_fill_bytes. (#​225)
Other traits and types
  • Add FromEntropy trait. (#​233, #​375)
  • Add SmallRng wrapper. (#​296)
  • Rewrite ReseedingRng to only work with BlockRngCore (substantial performance improvement). (#​281)
  • Deprecate weak_rng. Use SmallRng instead. (#​296)
  • Deprecate AsciiGenerator. (#​279)
Random number generators
  • Switch StdRng and thread_rng to HC-128. (#​277)
  • StdRng must now be created with from_entropy instead of new
  • Change thread_rng reseeding threshold to 32 MiB. (#​277)
  • PRNGs no longer implement Copy. (#​209)
  • Debug implementations no longer show internals. (#​209)
  • Implement Clone for ReseedingRng, JitterRng, OsRng`. (#​383, #​384)
  • Implement serialization for XorShiftRng, IsaacRng and Isaac64Rng under the serde1 feature. (#​189)
  • Implement BlockRngCore for ChaChaCore and Hc128Core. (#​281)
  • All PRNGs are now portable across big- and little-endian architectures. (#​209)
  • Isaac64Rng::next_u32 no longer throws away half the results. (#​209)
  • Add IsaacRng::new_from_u64 and Isaac64Rng::new_from_u64. (#​209)
  • Add the HC-128 CSPRNG Hc128Rng. (#​210)
  • Change ChaCha20 to have 64-bit counter and 64-bit stream. (#​349)
  • Changes to JitterRng to get its size down from 2112 to 24 bytes. (#​251)
  • Various performance improvements to all PRNGs.
Platform support and OsRng
  • Add support for CloudABI. (#​224)
  • Remove support for NaCl. (#​225)
  • WASM support for OsRng via stdweb, behind the stdweb feature. (#​272, #​336)
  • Use getrandom on more platforms for Linux, and on Android. (#​338)
  • Use the SecRandomCopyBytes interface on macOS. (#​322)
  • On systems that do not have a syscall interface, only keep a single file descriptor open for OsRng. (#​239)
  • On Unix, first try a single read from /dev/random, then /dev/urandom. (#​338)
  • Better error handling and reporting in OsRng (using new error type). (#​225)
  • OsRng now uses non-blocking when available. (#​225)
  • Add EntropyRng, which provides OsRng, but has JitterRng as a fallback. (#​235)
Distributions
  • New Distribution trait. (#​256)
  • Add Distribution::sample_iter and Rng::::sample_iter. (#​361)
  • Deprecate Rand, Sample and IndependentSample traits. (#​256)
  • Add a Standard distribution (replaces most Rand implementations). (#​256)
  • Add Binomial and Poisson distributions. (#​96)
  • Add Bernoulli dsitribution. (#​411)
  • Add Alphanumeric distribution. (#​279)
  • Remove Closed01 distribution, add OpenClosed01. (#​274, #​420)
  • Rework Range type, making it possible to implement it for user types. (#​274)
  • Rename Range to Uniform. (#​395)
  • Add Uniform::new_inclusive for inclusive ranges. (#​274)
  • Use widening multiply method for much faster integer range reduction. (#​274)
  • Standard distribution for char uses Uniform internally. (#​274)
  • Standard distribution for bool uses sign test. (#​274)
  • Implement Standard distribution for Wrapping<T>. (#​436)
  • Implement Uniform distribution for Duration. (#​427)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) January 27, 2025 18:43
@renovate renovate bot force-pushed the renovate/rand_distr-0.x branch 3 times, most recently from be85fd9 to a5a4da9 Compare January 29, 2025 16:55
@renovate renovate bot force-pushed the renovate/rand_distr-0.x branch from a5a4da9 to f27b65f Compare January 30, 2025 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants