Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Merge #3435
Browse files Browse the repository at this point in the history
3435: Bump rand from 0.7.3 to 0.8.0 r=mergify[bot] a=dependabot[bot]

Bumps [rand](https://github.com/rust-random/rand) from 0.7.3 to 0.8.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rust-random/rand/blob/master/CHANGELOG.md">rand's changelog</a>.</em></p>
<blockquote>
<h2>[0.8.0] - 2020-12-18</h2>
<h3>Platform support</h3>
<ul>
<li>The minimum supported Rust version is now 1.36 (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1011">#1011</a>)</li>
<li><code>getrandom</code> updated to v0.2 (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1041">#1041</a>)</li>
<li>Remove <code>wasm-bindgen</code> and <code>stdweb</code> feature flags. For details of WASM support,
see the <a href="https://docs.rs/getrandom/latest">getrandom documentation</a>. (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/948">#948</a>)</li>
<li><code>ReadRng::next_u32</code> and <code>next_u64</code> now use little-Endian conversion instead
of native-Endian, affecting results on Big-Endian platforms (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1061">#1061</a>)</li>
<li>The <code>nightly</code> feature no longer implies the <code>simd_support</code> feature (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1048">#1048</a>)</li>
<li>Fix <code>simd_support</code> feature to work on current nightlies (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1056">#1056</a>)</li>
</ul>
<h3>Rngs</h3>
<ul>
<li><code>ThreadRng</code> is no longer <code>Copy</code> to enable safe usage within thread-local destructors (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1035">#1035</a>)</li>
<li><code>gen_range(a, b)</code> was replaced with <code>gen_range(a..b)</code>. <code>gen_range(a..=b)</code> is
also supported. Note that <code>a</code> and <code>b</code> can no longer be references or SIMD types. (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/744">#744</a>, <a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1003">#1003</a>)</li>
<li>Replace <code>AsByteSliceMut</code> with <code>Fill</code> and add support for <code>[bool], [char], [f32], [f64]</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/940">#940</a>)</li>
<li>Restrict <code>rand::rngs::adapter</code> to <code>std</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1027">#1027</a>; see also <a href="https://github-redirect.dependabot.com/rust-random/rand/issues/928">#928</a>)</li>
<li><code>StdRng</code>: add new <code>std_rng</code> feature flag (enabled by default, but might need
to be used if disabling default crate features) (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/948">#948</a>)</li>
<li><code>StdRng</code>: Switch from ChaCha20 to ChaCha12 for better performance (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1028">#1028</a>)</li>
<li><code>SmallRng</code>: Replace PCG algorithm with xoshiro{128,256}++ (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1038">#1038</a>)</li>
</ul>
<h3>Sequences</h3>
<ul>
<li>Add <code>IteratorRandom::choose_stable</code> as an alternative to <code>choose</code> which does
not depend on size hints (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1057">#1057</a>)</li>
<li>Improve accuracy and performance of <code>IteratorRandom::choose</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1059">#1059</a>)</li>
<li>Implement <code>IntoIterator</code> for <code>IndexVec</code>, replacing the <code>into_iter</code> method (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1007">#1007</a>)</li>
<li>Add value stability tests for <code>seq</code> module (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/933">#933</a>)</li>
</ul>
<h3>Misc</h3>
<ul>
<li>Support <code>PartialEq</code> and <code>Eq</code> for <code>StdRng</code>, <code>SmallRng</code> and <code>StepRng</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/979">#979</a>)</li>
<li>Added a <code>serde1</code> feature and added Serialize/Deserialize to <code>UniformInt</code> and <code>WeightedIndex</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/974">#974</a>)</li>
<li>Drop some unsafe code (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/962">#962</a>, <a href="https://github-redirect.dependabot.com/rust-random/rand/issues/963">#963</a>, <a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1011">#1011</a>)</li>
<li>Reduce packaged crate size (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/983">#983</a>)</li>
<li>Migrate to GitHub Actions from Travis+AppVeyor (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1073">#1073</a>)</li>
</ul>
<h3>Distributions</h3>
<ul>
<li><code>Alphanumeric</code> samples bytes instead of chars (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/935">#935</a>)</li>
<li><code>Uniform</code> now supports <code>char</code>, enabling <code>rng.gen_range('A'..='Z')</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1068">#1068</a>)</li>
<li>Add <code>UniformSampler::sample_single_inclusive</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1003">#1003</a>)</li>
</ul>
<h4>Weighted sampling</h4>
<ul>
<li>Implement weighted sampling without replacement (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/976">#976</a>, <a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1013">#1013</a>)</li>
<li><code>rand::distributions::alias_method::WeightedIndex</code> was moved to <code>rand_distr::WeightedAliasIndex</code>.
The simpler alternative <code>rand::distribution::WeightedIndex</code> remains. (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/945">#945</a>)</li>
<li>Improve treatment of rounding errors in <code>WeightedIndex::update_weights</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/956">#956</a>)</li>
<li><code>WeightedIndex</code>: return error on NaN instead of panic (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1005">#1005</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Document types supported by <code>random</code> (<a href="https://github-redirect.dependabot.com/rust-random/rand/issues/994">#994</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rust-random/rand/commit/98a1aaf28e7bc272c12796d96401c177bf2205e4"><code>98a1aaf</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1076">#1076</a> from dhardy/work</li>
<li><a href="https://github.com/rust-random/rand/commit/46082d51d23050569b0d7b75ee8eef5e7a181fc0"><code>46082d5</code></a> Fix installation of multilib</li>
<li><a href="https://github.com/rust-random/rand/commit/d109f1852f8c3d86be7d472eb47ff672b3503ed2"><code>d109f18</code></a> Update changelog for rand v0.8</li>
<li><a href="https://github.com/rust-random/rand/commit/cc93dae4ed1a1de74c5ba5c5f03081b84d65e174"><code>cc93dae</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1079">#1079</a> from JJPennington/master</li>
<li><a href="https://github.com/rust-random/rand/commit/9aa8bc1047b1e61c9bc810956523af40a776d1f2"><code>9aa8bc1</code></a> Modified the StdRng documentation</li>
<li><a href="https://github.com/rust-random/rand/commit/34423a6bc8688449fcd5b445870ace574f3b2902"><code>34423a6</code></a> Use cp to create redirect</li>
<li><a href="https://github.com/rust-random/rand/commit/d4b180db8ebfc0eb6adb14a93517594268df46c1"><code>d4b180d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-random/rand/issues/1078">#1078</a> from rust-random/work2</li>
<li><a href="https://github.com/rust-random/rand/commit/1959b1adacc94a3f9887b62c50b1288e3806abea"><code>1959b1a</code></a> Adjust homepage to point at the book</li>
<li><a href="https://github.com/rust-random/rand/commit/e9adf451c56d64d2911fe7d6da570ed1094f5a3e"><code>e9adf45</code></a> Switch documentation links to docs.rs</li>
<li><a href="https://github.com/rust-random/rand/commit/da3458becbf67eec4b98e0c949db819c638f62c0"><code>da3458b</code></a> Add HTML redirect</li>
<li>Additional commits viewable in <a href="https://github.com/rust-random/rand/compare/0.7.3...0.8.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rand&package-manager=cargo&previous-version=0.7.3&new-version=0.8.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
bors[bot] and dependabot[bot] authored Dec 20, 2020
2 parents 6d0bf57 + ee9568c commit 640250d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 9 deletions.
63 changes: 57 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cnd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ libsqlite3-sys = { version = ">=0.8.0, <0.13.0", features = [ "bundled" ] }
log = { version = "0.4", features = [ "serde" ] }
num = "0.3"
pem = "0.8"
rand = "0.7"
rand = "0.8"
reqwest = { version = "0.10", default-features = false, features = [ "json", "native-tls-vendored" ] }
serde = { version = "1", features = [ "derive" ] }
serde_derive = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion comit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ lru = "0.6"
num = "0.3"
primitive-types = { version = "0.7", features = [ "serde" ] }
quickcheck = { version = "0.9", optional = true }
rand = "0.7"
rand = "0.8"
reqwest = { version = "0.10", default-features = false, features = [ "json", "native-tls-vendored" ] }
serde = { version = "1", features = [ "derive" ] }
serde_derive = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion nectar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ uuid = { version = "0.8", features = [ "serde", "v4" ] }

[dependencies.rand]
default-features = false
version = "0.6"
version = "0.8"

[dev-dependencies]
base64 = "0.13"
Expand Down

0 comments on commit 640250d

Please sign in to comment.