Update Rust crate rand to 0.10.0#137
Open
projectorigin-renovate[bot] wants to merge 1 commit into
Open
Conversation
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
from
January 30, 2025 09:17
4a61cfb to
4cd0d5d
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
4 times, most recently
from
February 12, 2025 09:19
e76362e to
4c3ff1f
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
February 24, 2025 09:20
25f6e25 to
e9a9425
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
from
February 27, 2025 09:19
e9a9425 to
c7b85dc
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
3 times, most recently
from
March 18, 2025 09:20
edb52d4 to
56c44a8
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
March 20, 2025 10:18
c62a972 to
8deb41d
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
3 times, most recently
from
April 10, 2025 09:18
d3e2939 to
2e121ed
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
from
April 11, 2025 09:19
2e121ed to
7950c08
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
from
April 25, 2025 09:19
7950c08 to
ed94673
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
May 9, 2025 09:22
1c788c6 to
a49da78
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
May 20, 2025 09:24
de8c6da to
a4b74c7
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
from
May 23, 2025 09:22
a4b74c7 to
ab310cc
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
June 3, 2025 13:39
2ac6dc9 to
03e65ba
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
June 11, 2025 09:26
f28dac8 to
9a7784f
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
from
July 9, 2025 09:27
9a7784f to
837f26f
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
October 2, 2025 10:22
dc78a12 to
5484278
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
October 16, 2025 13:35
186eb6a to
4a34491
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
3 times, most recently
from
October 27, 2025 10:26
3df33d0 to
469b1ed
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
3 times, most recently
from
November 18, 2025 09:26
b45c1ad to
3993ec5
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
3 times, most recently
from
November 25, 2025 09:28
9a112ad to
d8cdcb5
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
from
December 3, 2025 09:28
d8cdcb5 to
0dbb866
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
December 15, 2025 10:31
f93188b to
7009809
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
from
January 14, 2026 09:33
7009809 to
205a584
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
3 times, most recently
from
February 9, 2026 08:53
3b63140 to
1f9ad0b
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
February 16, 2026 09:57
38b3247 to
bafb0bd
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
3 times, most recently
from
February 27, 2026 10:41
f0cfd0c to
5dd8a8b
Compare
projectorigin-renovate
Bot
force-pushed
the
renovate/rand-0.x
branch
2 times, most recently
from
March 11, 2026 09:45
9ee585e to
14c4239
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.8.5→0.10.0Release Notes
rust-random/rand (rand)
v0.10.2Compare Source
Fixes
UniformCharfrom bad source (#1790)Changes
partial_shuffleand apply#[must_use](#1769)unsafein contexts where non-local memory corruption could invalidate contract (#1791)v0.10.1Compare Source
This release includes a fix for a soundness bug; see #1763.
Changes
make_rngand add#[track_caller](#1761)log(#1763)v0.10.0Compare Source
Changes
rand_chachahas been replaced with a dependency onchacha20. This changes the implementation behindStdRng, but the output remains the same. There may be some API breakage when using the ChaCha-types directly as these are now the ones inchacha20instead ofrand_chacha(#1642).IndexedRandom::choose_multiple->sample,choose_multiple_array->sample_array,choose_multiple_weighted->sample_weighted, structSliceChooseIter->IndexedSamplesand fnsIteratorRandom::choose_multiple->sample,choose_multiple_fill->sample_fill(#1632)Fillbe implemented for element types, not sliceable types (#1652)OsError::raw_os_erroron UEFI targets by returningOption<usize>(#1665)TryRngCore::read_adapter(..) -> RngReadAdapterwith simpler structRngReader(#1669)SeedableRng::from_os_rng,try_from_os_rng(#1674)Clonesupport forStdRng,ReseedingRng(#1677)postcardinstead ofbincodeto test the serde feature (#1693)IteratorRandom::samplewhenamountis much larger than iterator size (#1695)os_rng->sys_rng,OsRng->SysRng,OsError->SysError(#1697)Rng->RngExtas upstreamrand_corehas renamedRngCore->Rng(#1717)Additions
IndexedRandom::choose_iter,choose_weighted_iter(#1632)Xoshiro128PlusPlus,Xoshiro256PlusPlusprngs (#1649)ChaCha8Rng,ChaCha12Rng,ChaCha20Rngbehindchachafeature (#1659)rand::make_rng() -> R where R: SeedableRng(#1734)Removals
ReseedingRng(#1722)small_rng(#1732)v0.9.5Compare Source
What's Changed
Full Changelog: rust-random/rand@0.9.4...0.9.5
v0.9.4Compare Source
Fixes
Full Changelog: rust-random/rand@0.9.3...0.9.4
v0.9.3Compare Source
This release back-ports a fix from v0.10. See also [#1763].
Changes
log(#1764)doc_auto_cfg(#1764)Full Changelog: rust-random/rand@0.9.2...0.9.3
v0.9.2Compare Source
Deprecated
rand::rngs::mockmodule andStepRnggenerator ([#1634])Additions
WeightedIndex<usize>(de)serialization ([#1646])v0.9.1Compare Source
Security and unsafe
zerocopydependency fromrand(#1579)Fixes
simd_supportfor recent nightly rust (#1586)Changes
fn rand::seq::index::sample_weightedandfn IndexedRandom::choose_multiple_weightedto return fewer thanamountresults (#1623), reverting an undocumented change ([#1382]) to the previous release.Additions
rand::distr::Alphabeticdistribution. (#1587)rand_core(#1604)v0.9.0Compare Source
Security and unsafe
ReseedingRngandThreadRng. Instead, it is recommended to callThreadRng::reseedon fork. (#1379)zerocopyto replace someunsafecode (#1349, #1393, #1446, #1502)Dependencies
--ignore-rust-versionrand_corev0.9.0 (#1558)Features
stdfeature withoutgetrandomorrand_chacha(#1354)small_rngby default (#1455)rand_chacha; usestd_rnginstead. (#1473)serde1toserde(#1477)getrandomtoos_rng(#1537)thread_rng(#1547)API changes: rand_core traits
RngCore::read_adapterimplementingstd::io::Read(#1267)CryptoBlockRng: BlockRngCore; maketrait CryptoRng: RngCore(#1273)TryRngCore,TryCryptoRng(#1424, #1499)fn SeedableRng::from_rng->try_from_rngand add infallible variantfn from_rng(#1424)fn SeedableRng::from_entropy->from_os_rngand add fallible variantfn try_from_os_rng(#1424)CloneandAsRefto associated typeSeedableRng::Seed(#1491)API changes: Rng trait and top-level fns
rand::thread_rng()torand::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_iterasrandom_iter(#1305, #1500)Rng::gentorandomto avoid conflict with the newgenkeyword in Rust 2024 (#1438)Rng::gen_rangetorandom_range,gen_booltorandom_bool,gen_ratiotorandom_ratio(#1505)#[track_caller](#1442, #1447)API changes: RNGs
<SmallRng as SeedableRng>::Seedsize to 256 bits (#1455)rng) ofReseedingRng::new(#1533)API changes: Sequences
SliceRandomintoIndexedRandom,IndexedMutRandom,SliceRandom(#1382)IndexedRandom::choose_multiple_array,index::sample_array(#1453, #1469)API changes: Distributions: renames
rand::distributionstorand::distr(#1470)StandardtoStandardUniform(#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)API changes: Distributions
Sizedbound onDistribution<T> for &D(#1278)Distribution<Option<T>>forStandardUniform(#1526)StandardUniformsupport allNonZero*types (#1332){Uniform, UniformSampler}::{new, new_inclusive}return aResult(instead of potentially panicking) (#1229)UniformimplementsTryFrominstead ofFromfor ranges (#1229)UniformUsize(#1487)isizeandusizevalues withStandardUniform,Uniform(except viaUniformUsize) andFilland usage as aWeightedAliasIndexweight (#1487)DistStringfor distributionsSlice<char>andUniform<char>(#1315)Slice::num_choices(#1402)p()for distributionBernoullito access probability (#1481)API changes: Weighted distributions
pubmodulerand::distr::weighted, movingWeightedIndexthere (#1548)weighted::Weight, allowingWeightedIndexto trap overflow (#1353)weight, weights, total_weightto distributionWeightedIndex(#1420)WeightedErrortoweighted::Error, revising variants (#1382) and mark as#[non_exhaustive](#1480)API changes: SIMD
std::simd, expand SIMD & docs (#1239)Reproducibility-breaking changes
ReseedingRng::reseeddiscard remaining data from the last block generated (#1379)SmallRng::seed_from_u64implementation (#1203)UniformFloat::newsamples andUniformFloat::sample_singleto yieldhigh(#1462)Slice(#1469)Uniformforusizeportable viaUniformUsize(#1487)IndexdRandom::choose_multiple_weightedfor very small seeds and optimize for large input length / low memory (#1530)Reproducibility-breaking optimisations
sample_floyd, affecting output ofrand::seq::index::sampleandrand::seq::SliceRandom::choose_multiple(#1277)IteratorRandom::chooseandchoose_stable(#1268)SliceRandom::shuffleandpartial_shuffle(#1272)Uniform: use Canon's method (single sampling) / Lemire's method (distribution sampling) for faster sampling (breaks value stability; #1287)sample_single_inclusivefor floats (+~20% perf) (#1289)Other optimisations
SmallRnginitialization performance (#1482)Other
Cargo.lock.msrvfile (#1275)rustfmtand enforce (#1448)benchescrate (#1329, #1439) and migrate to Criterion (#1490)Documentation
ThreadRngrelated docs (#1257)--generate-link-to-definitionfeature (#1327)doc_auto_cfg(#1411, #1450)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.