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.7.3
->0.8.5
Release Notes
rust-random/rand
v0.8.5
Compare Source
Fixes
no_std
(#1173)libc::pthread_atfork
return value with panic on error (#1178)ReseedingRng
is used from a fork handler (#1178)slice_partition_at_index
feature (#1215)simd_support
: updatepacked_simd
(#1216)Rngs
StdRng
: Switch from HC128 to ChaCha12 on emscripten (#1142).We now use ChaCha12 on all platforms.
Documentation
v0.8.4
Compare Source
Additions
Clone
andCopy
forAlphanumeric
(#1126)Distribution::map
to derive a distribution using a closure (#1129)Slice
distribution (#1107)DistString
trait with impls forStandard
andAlphanumeric
(#1133)Other
Uniform
float distributions for easier debugging of non-finite arguments(#1094, #1108)
Uniform
float distributions (#1108)rngs::adapter::ReadRng
(#1130)v0.8.3
Compare Source
Fixes
no-std
+alloc
build by gatingchoose_multiple_weighted
onstd
(#1088)v0.8.2
Compare Source
Fixes
UniformInt::sample_single_inclusive
andRng::gen_range
whenproviding a full integer range (eg
0..=MAX
) (#1087)v0.8.1
Compare Source
Other
v0.8.0
Compare Source
Platform support
getrandom
updated to v0.2 (#1041)wasm-bindgen
andstdweb
feature flags. For details of WASM support,see the getrandom documentation. (#948)
ReadRng::next_u32
andnext_u64
now use little-Endian conversion insteadof native-Endian, affecting results on Big-Endian platforms (#1061)
nightly
feature no longer implies thesimd_support
feature (#1048)simd_support
feature to work on current nightlies (#1056)Rngs
ThreadRng
is no longerCopy
to enable safe usage within thread-local destructors (#1035)gen_range(a, b)
was replaced withgen_range(a..b)
.gen_range(a..=b)
isalso supported. Note that
a
andb
can no longer be references or SIMD types. (#744, #1003)AsByteSliceMut
withFill
and add support for[bool], [char], [f32], [f64]
(#940)rand::rngs::adapter
tostd
(#1027; see also #928)StdRng
: add newstd_rng
feature flag (enabled by default, but might needto be used if disabling default crate features) (#948)
StdRng
: Switch from ChaCha20 to ChaCha12 for better performance (#1028)SmallRng
: Replace PCG algorithm with xoshiro{128,256}++ (#1038)Sequences
IteratorRandom::choose_stable
as an alternative tochoose
which doesnot depend on size hints (#1057)
IteratorRandom::choose
(#1059)IntoIterator
forIndexVec
, replacing theinto_iter
method (#1007)seq
module (#933)Misc
PartialEq
andEq
forStdRng
,SmallRng
andStepRng
(#979)serde1
feature and added Serialize/Deserialize toUniformInt
andWeightedIndex
(#974)Distributions
Alphanumeric
samples bytes instead of chars (#935)Uniform
now supportschar
, enablingrng.gen_range('A'..='Z')
(#1068)UniformSampler::sample_single_inclusive
(#1003)Weighted sampling
rand::distributions::alias_method::WeightedIndex
was moved torand_distr::WeightedAliasIndex
.The simpler alternative
rand::distribution::WeightedIndex
remains. (#945)WeightedIndex::update_weights
(#956)WeightedIndex
: return error on NaN instead of panic (#1005)Documentation
random
(#994)SmallRng
may not be the best choice for performance and in someother cases (#1038)
doc(cfg)
to annotate feature-gated items (#1019)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 has been generated by Mend Renovate. View repository job log here.