Update Rust crate rand_distr to 0.6 - #560
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/rand_distr-0.x
branch
from
February 2, 2026 19:29
a4e370d to
2a8d78b
Compare
renovate
Bot
force-pushed
the
renovate/rand_distr-0.x
branch
from
February 10, 2026 14:49
2a8d78b to
867f7af
Compare
renovate
Bot
force-pushed
the
renovate/rand_distr-0.x
branch
from
May 18, 2026 15:01
867f7af to
0d891b2
Compare
renovate
Bot
force-pushed
the
renovate/rand_distr-0.x
branch
from
July 20, 2026 19:16
0d891b2 to
79120f4
Compare
Collaborator
|
Attempted to rebase this update onto current
Not including this in the bulk dependency PR for now. |
Merged
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.4→0.6Release Notes
rust-random/rand_distr (rand_distr)
v0.6.0Compare Source
rand([#28])randto version 0.10.0 ([#31], [#48])Additions
MultiDistributiontrait to sample more efficiently from multi-dimensional distributions ([#18])WeightedAliasIndex::weights()to reconstruct the original weights in O(n) ([#25])ConstMultiDistributiontrait as support for fixed-dimension distributions ([#29])Changes
Dirichletinto the newmultimodule and implementMultiDistributionfor it ([#18])Dirichletno longer usesconstgenerics, which means that its size is not required at compile time. Essentially a revert of [rand#1292]. ([#30])Fixes
Geometric::newfor smallp > 0where1 - prounds to 1 ([#36])direct-minimal-versions([#38])FisherF::newon almost zero parameters ([#39])NormalInverseGaussian::newwith very largealpha; this is a Value-breaking change ([#40])Zipf::newon invalid parameters ([#41])Binomial::samplewithn ≥ 2^63; this is a Value-breaking change ([#43])-infoutput forExpwhenlambdais-0.0([#44])Gamma::sample; this is a Value-breaking change and also affectsChiSquaredandDirichlet([#46])v0.5.1Compare Source
Testing
Fixes
no_stdbuildsv0.5.0Compare Source
Dependencies and features
--ignore-rust-versionrandv0.9.0 ([rand#1558])serde1toserde([rand#1477])API changes
PartialEq([rand#1218])Dirichletnow usesconstgenerics, which means that its size is required at compile time ([rand#1292])Dirichlet::new_with_sizeconstructor was removed ([rand#1292])WeightedIndexTree([rand#1372], [rand#1444])PertBuilderto allow specification ofmeanormode([rand#1452])Zeta's parameteratos([rand#1466])WeightError,PoissonError,BinomialErroras#[non_exhaustive]([rand#1480])isizeas aWeightedAliasIndexweight ([rand#1487])Zipf::new:nis now floating-point ([rand#1518])API changes: renames
Slice->slice::Choose,EmptySlice->slice::Empty([rand#1548])DistString->SampleString([rand#1548])DistIter->Iter,DistMap->Map([rand#1548]){Weight, WeightError, WeightedIndex}->weighted::{Weight, Error, WeightedIndex}([rand#1548])weighted_alias::{AliasableWeight, WeightedAliasIndex}->weighted::{..}([rand#1548])weighted_tree::WeightedTreeIndex->weighted::WeightedTreeIndex([rand#1548])Testing
Fixes
Poissondoesn't return -1.0 for small lambda ([rand#1284])Poissondistribution instantiation so it return an error if lambda is infinite ([rand#1291])Binomialdistribution ([rand#1325])Pertdistribution wheremodeis close to(min + max) / 2([rand#1452])Poissonto solve ([rand#1312]) ([rand#1498])Hypergeometric, this is a Value-breaking change ([rand#1510])Other changes
Gamma,NormalInverseGaussianandZipfdistributions ([rand#1184])This breaks serialization compatibility with older versions.
rand_distrdistributions to documentation ([rand#1434])sampletonew([rand#1484])Poisson's rejection method to improve performance and correct sampling inaccuracies for large lambda values, this is a Value-breaking change ([rand#1560])Configuration
📅 Schedule: (UTC)
🚦 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.