chore(deps): update rust crate rand to 0.9.0
Compare changes
-
Signed-off-by:
renovate <renovate@archlinux.org>
+ 1
− 1
@@ -19,7 +19,7 @@ nethsm = { path = "nethsm", version = "0.7.3" }
Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
rand (source) | workspace.dependencies | minor |
0.8.5 -> 0.9.0
|
v0.9.0
ReseedingRng
and ThreadRng
. Instead, it is recommended to call ThreadRng::reseed
on fork. (#1379)zerocopy
to replace some unsafe
code (#1349, #1393, #1446, #1502)--ignore-rust-version
rand_core
v0.9.0 (#1558)std
feature without getrandom
or rand_chacha
(#1354)small_rng
by default (#1455)rand_chacha
; use std_rng
instead. (#1473)serde1
to serde
(#1477)getrandom
to os_rng
(#1537)thread_rng
(#1547)RngCore::read_adapter
implementing std::io::Read
(#1267)CryptoBlockRng: BlockRngCore
; make trait CryptoRng: RngCore
(#1273)TryRngCore
, TryCryptoRng
(#1424, #1499)fn SeedableRng::from_rng
-> try_from_rng
and add infallible variant fn from_rng
(#1424)fn SeedableRng::from_entropy
-> from_os_rng
and add fallible variant fn try_from_os_rng
(#1424)Clone
and AsRef
to associated type SeedableRng::Seed
(#1491)rand::thread_rng()
to rand::rng()
and remove from the prelude (#1506)rand::random()
from the prelude (#1506)random_iter
, random_range
, random_bool
, random_ratio
, fill
(#1488)Rng::gen_iter
as random_iter
(#1305, #1500)Rng::gen
to random
to avoid conflict with the new gen
keyword in Rust 2024 (#1438)Rng::gen_range
to random_range
, gen_bool
to random_bool
, gen_ratio
to random_ratio
(#1505)#[track_caller]
(#1442, #1447)<SmallRng as SeedableRng>::Seed
size to 256 bits (#1455)rng
) of ReseedingRng::new
(#1533)SliceRandom
into IndexedRandom
, IndexedMutRandom
, SliceRandom
(#1382)IndexedRandom::choose_multiple_array
, index::sample_array
(#1453, #1469)rand::distributions
to rand::distr
(#1470)Standard
to StandardUniform
(#1526)distr::Slice
-> distr::slice::Choose
, distr::EmptySlice
-> distr::slice::Empty
(#1548)distr::DistString
-> distr::SampleString
(#1548)distr::DistIter
-> distr::Iter
, distr::DistMap
-> distr::Map
(#1548)Sized
bound on Distribution<T> for &D
(#1278)Distribution<Option<T>>
for StandardUniform
(#1526)StandardUniform
support all NonZero*
types (#1332){Uniform, UniformSampler}::{new, new_inclusive}
return a Result
(instead of potentially panicking) (#1229)Uniform
implements TryFrom
instead of From
for ranges (#1229)UniformUsize
(#1487)isize
and usize
values with StandardUniform
, Uniform
(except via UniformUsize
) and Fill
and usage as a WeightedAliasIndex
weight (#1487)DistString
for distributions Slice<char>
and Uniform<char>
(#1315)Slice::num_choices
(#1402)p()
for distribution Bernoulli
to access probability (#1481)pub
module rand::distr::weighted
, moving WeightedIndex
there (#1548)weighted::Weight
, allowing WeightedIndex
to trap overflow (#1353)weight, weights, total_weight
to distribution WeightedIndex
(#1420)WeightedError
to weighted::Error
, revising variants (#1382) and mark as #[non_exhaustive]
(#1480)std::simd
, expand SIMD & docs (#1239)ReseedingRng::reseed
discard remaining data from the last block generated (#1379)SmallRng::seed_from_u64
implementation (#1203)UniformFloat::new
samples and UniformFloat::sample_single
to yield high
(#1462)Slice
(#1469)Uniform
for usize
portable via UniformUsize
(#1487)IndexdRandom::choose_multiple_weighted
for very small seeds and optimize for large input length / low memory (#1530)sample_floyd
, affecting output of rand::seq::index::sample
and rand::seq::SliceRandom::choose_multiple
(#1277)IteratorRandom::choose
and choose_stable
(#1268)SliceRandom::shuffle
and partial_shuffle
(#1272)Uniform
: use Canon's method (single sampling) / Lemire's method (distribution sampling) for faster sampling (breaks value stability; #1287)sample_single_inclusive
for floats (+~20% perf) (#1289)Cargo.lock.msrv
file (#1275)rustfmt
and enforce (#1448)benches
crate (#1329, #1439) and migrate to Criterion (#1490)This MR has been generated by Renovate Bot.
Signed-off-by:
renovate <renovate@archlinux.org>