Update Rust crate rand to v0.9.0-beta.0 #2467
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9.0-alpha.2
->0.9.0-beta.0
Release Notes
rust-random/rand (rand)
v0.9.0-beta.0
Compare Source
This is a pre-release. To depend on this version, use
rand = "=0.9.0-beta.0"
to prevent automatic updates (which can be expected to include breaking changes).Security and unsafe
ReseedingRng
andThreadRng
. Instead, it is recommended to callThreadRng::reseed
on fork. (#1379)zerocopy
to replace someunsafe
code (#1349, #1393, #1446, #1502)Compilation options
--ignore-rust-version
std
feature withoutgetrandom
orrand_chacha
(#1354)thread_rng
related docs (#1257)serde1
feature has been renamedserde
(#1477)rand_chacha
has been removed. This is enabled bystd_rng
. (#1473)small_rng
by default (#1455)getrandom
toos_rng
(#1537)Inherited changes from
rand_core
RngCore::read_adapter
implementingstd::io::Read
(#1267)CryptoBlockRng: BlockRngCore
; maketrait CryptoRng: RngCore
(#1273)TryRngCore
,TryCryptoRng
(#1424, #1499)Clone
andAsRef
to associated typeSeedableRng::Seed
(#1491)Rng trait and top-level fns
rand::thread_rng()
torand::rng()
, and remove from the prelude (#1506)random_iter
,random_range
,random_bool
,random_ratio
,fill
(#1488)rand::random()
from the prelude (#1506)Rng::gen_iter
asrandom_iter
(#1305, #1500)Rng::gen
torandom
to avoid conflict with the newgen
keyword in Rust 2024 (#1438)Rng::gen_range
torandom_range
,gen_bool
torandom_bool
,gen_ratio
torandom_ratio
(#1505)#[track_caller]
(#1442, #1447)RNGs
ReseedingRng::reseed
discard remaining data from the last block generated (#1379)SmallRng::seed_from_u64
implementation (#1203)<SmallRng as SeedableRng>::Seed
size to 256 bits (#1455)rng
) ofReseedingRng::new
(#1533)Sequences
sample_floyd
, affecting output ofrand::seq::index::sample
andrand::seq::SliceRandom::choose_multiple
(#1277)IteratorRandom::choose
andchoose_stable
(#1268)SliceRandom::shuffle
andpartial_shuffle
(#1272)SliceRandom
intoIndexedRandom
,IndexedMutRandom
,SliceRandom
(#1382)IndexedRandom::choose_multiple_array
,index::sample_array
(#1453, #1469)IndexdRandom::choose_multiple_weighted
for very small seeds and optimize for large input length / low memory (#1530)Distributions
rand::distributions
torand::distr
(#1470)Sized
bound onDistribution<T> for &D
(#1278)Standard
toStandardUniform
(#1526)Distribution<Option<T>>
forStandardUniform
(#1526)StandardUniform
support allNonZero*
types (#1332){Uniform, UniformSampler}::{new, new_inclusive}
return aResult
(instead of potentially panicking) (#1229)Uniform
implementsTryFrom
instead ofFrom
for ranges (#1229)Uniform
: use Canon's method (single sampling) / Lemire's method (distribution sampling) for faster sampling (breaks value stability; #1287)UniformUsize
and use to makeUniform
forusize
portable (#1487)sample_single_inclusive
for floats (+~20% perf) (#1289)UniformFloat::new
samples andUniformFloat::sample_single
to yieldhigh
(#1462)DistString
for distributionsSlice<char>
andUniform<char>
(#1315)Slice::num_choices
(#1402)Slice
(#1469)Weight
, allowingWeightedIndex
to trap overflow (#1353)weight, weights, total_weight
to distributionWeightedIndex
(#1420)WeightedError
toWeightError
, revising variants (#1382) and mark as#[non_exhaustive]
(#1480)p()
for distributionBernoulli
to access probability (#1481)SIMD
std::simd
, expand SIMD & docs (#1239)Documentation
Cargo.lock.msrv
file (#1275)--generate-link-to-definition
feature (#1327)doc_auto_cfg
(#1411, #1450)Other
rustfmt
and enforce (#1448)benches
crate (#1329, #1439) and migrate to Criterion (#1490)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.