Skip to content

Update rand requirement from 0.7 to 0.8#1899

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/rand-0.8
Closed

Update rand requirement from 0.7 to 0.8#1899
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/rand-0.8

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Dec 21, 2020

Updates the requirements on rand to permit the latest version.

Changelog

Sourced from rand's changelog.

[0.8.0] - 2020-12-18

Platform support

  • The minimum supported Rust version is now 1.36 (#1011)
  • getrandom updated to v0.2 (#1041)
  • Remove wasm-bindgen and stdweb feature flags. For details of WASM support, see the getrandom documentation. (#948)
  • ReadRng::next_u32 and next_u64 now use little-Endian conversion instead of native-Endian, affecting results on Big-Endian platforms (#1061)
  • The nightly feature no longer implies the simd_support feature (#1048)
  • Fix simd_support feature to work on current nightlies (#1056)

Rngs

  • ThreadRng is no longer Copy to enable safe usage within thread-local destructors (#1035)
  • gen_range(a, b) was replaced with gen_range(a..b). gen_range(a..=b) is also supported. Note that a and b can no longer be references or SIMD types. (#744, #1003)
  • Replace AsByteSliceMut with Fill and add support for [bool], [char], [f32], [f64] (#940)
  • Restrict rand::rngs::adapter to std (#1027; see also #928)
  • StdRng: add new std_rng feature flag (enabled by default, but might need to 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

  • Add IteratorRandom::choose_stable as an alternative to choose which does not depend on size hints (#1057)
  • Improve accuracy and performance of IteratorRandom::choose (#1059)
  • Implement IntoIterator for IndexVec, replacing the into_iter method (#1007)
  • Add value stability tests for seq module (#933)

Misc

  • Support PartialEq and Eq for StdRng, SmallRng and StepRng (#979)
  • Added a serde1 feature and added Serialize/Deserialize to UniformInt and WeightedIndex (#974)
  • Drop some unsafe code (#962, #963, #1011)
  • Reduce packaged crate size (#983)
  • Migrate to GitHub Actions from Travis+AppVeyor (#1073)

Distributions

  • Alphanumeric samples bytes instead of chars (#935)
  • Uniform now supports char, enabling rng.gen_range('A'..='Z') (#1068)
  • Add UniformSampler::sample_single_inclusive (#1003)

Weighted sampling

  • Implement weighted sampling without replacement (#976, #1013)
  • rand::distributions::alias_method::WeightedIndex was moved to rand_distr::WeightedAliasIndex. The simpler alternative rand::distribution::WeightedIndex remains. (#945)
  • Improve treatment of rounding errors in WeightedIndex::update_weights (#956)
  • WeightedIndex: return error on NaN instead of panic (#1005)

Documentation

  • Document types supported by random (#994)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Dec 21, 2020
@mxinden
Copy link
Copy Markdown
Member

mxinden commented Jan 4, 2021

As far as I can tell we will have to wait for snow to update to rand v0.8.0. It is currently using v0.7.0.

@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch 3 times, most recently from 81585da to 95c13b1 Compare January 11, 2021 11:31
@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch 4 times, most recently from a190688 to a5ce757 Compare January 12, 2021 12:55
@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch 5 times, most recently from 022f819 to 9711163 Compare January 14, 2021 19:17
@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch 4 times, most recently from fc3f839 to 415107d Compare January 27, 2021 09:45
@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch from 415107d to 6ffedb5 Compare January 27, 2021 11:49
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Jan 27, 2021

A newer version of rand exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch 3 times, most recently from c96509c to 810b62a Compare February 1, 2021 15:38
@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch 2 times, most recently from 839bf12 to 81b443e Compare February 8, 2021 09:06
@mxinden
Copy link
Copy Markdown
Member

mxinden commented Feb 11, 2021

As far as I can tell we will have to wait for snow to update to rand v0.8.0. It is currently using v0.7.0.

See mcginty/snow#107.

@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch from 81b443e to 36d45f5 Compare February 13, 2021 19:16
@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch 5 times, most recently from 22788b6 to 8476efe Compare February 17, 2021 09:58
@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch from 8476efe to 1942982 Compare February 25, 2021 10:37
Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](rust-random/rand@0.7.3...0.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/rand-0.8 branch from 1942982 to 7cb7abb Compare March 1, 2021 14:58
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 2, 2021

Looks like rand is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Mar 2, 2021
@dependabot dependabot bot deleted the dependabot/cargo/rand-0.8 branch March 2, 2021 09:19
@mxinden
Copy link
Copy Markdown
Member

mxinden commented Mar 2, 2021

@dependabot recreate

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 2, 2021

Looks like this PR is closed. If you re-open it I'll rebase it as long as no-one else has edited it (you can use @dependabot reopen if the branch has been deleted).

@mxinden
Copy link
Copy Markdown
Member

mxinden commented Mar 2, 2021

@dependabot reopen

@dependabot dependabot bot reopened this Mar 2, 2021
@dependabot dependabot bot restored the dependabot/cargo/rand-0.8 branch March 2, 2021 15:29
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 2, 2021

Looks like rand is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Mar 2, 2021
@dependabot dependabot bot deleted the dependabot/cargo/rand-0.8 branch March 2, 2021 15:30
@mxinden
Copy link
Copy Markdown
Member

mxinden commented Mar 2, 2021

I am a bit puzzled why dependabot thinks rand has been updated to v0.8. The blocker on the snow release still holds.

@mxinden
Copy link
Copy Markdown
Member

mxinden commented Sep 30, 2022

Note that rust-libp2p now uses rand v0.8 thanks to @kpp #2857.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant