From 88d372ba83af35e20b12479587af0faa648e37ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 27 Oct 2022 01:31:10 +0000 Subject: [PATCH] Bump rand from 0.7.3 to 0.8.4 Bumps [rand](https://github.com/rust-random/rand) from 0.7.3 to 0.8.4. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/0.7.3...0.8.4) --- updated-dependencies: - dependency-name: rand dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 48 ++++++++----------- bin/node/bench/Cargo.toml | 2 +- client/authority-discovery/Cargo.toml | 2 +- client/cli/Cargo.toml | 2 +- client/consensus/babe/Cargo.toml | 2 +- client/network/Cargo.toml | 4 +- client/network/test/Cargo.toml | 2 +- client/offchain/Cargo.toml | 2 +- client/peerset/Cargo.toml | 2 +- client/service/Cargo.toml | 2 +- client/telemetry/Cargo.toml | 2 +- .../election-provider-multi-phase/Cargo.toml | 4 +- frame/session/benchmarking/Cargo.toml | 2 +- primitives/arithmetic/Cargo.toml | 2 +- primitives/core/Cargo.toml | 4 +- primitives/keystore/Cargo.toml | 2 +- primitives/npos-elections/Cargo.toml | 2 +- primitives/runtime/Cargo.toml | 4 +- primitives/state-machine/Cargo.toml | 4 +- 19 files changed, 42 insertions(+), 52 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1161539b4d..b7094c7d7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4652,7 +4652,7 @@ dependencies = [ "node-testing", "parity-db", "parity-util-mem", - "rand 0.7.3", + "rand 0.8.4", "sc-basic-authorship", "sc-client-api", "sc-transaction-pool", @@ -5724,7 +5724,7 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "parking_lot 0.11.2", - "rand 0.7.3", + "rand 0.8.4", "scale-info", "sp-arithmetic", "sp-core", @@ -6231,7 +6231,7 @@ dependencies = [ "pallet-staking-reward-curve", "pallet-timestamp", "parity-scale-codec", - "rand 0.7.3", + "rand 0.8.4", "scale-info", "sp-core", "sp-io", @@ -7211,7 +7211,6 @@ dependencies = [ "rand_chacha 0.2.2", "rand_core 0.5.1", "rand_hc 0.2.0", - "rand_pcg 0.2.1", ] [[package]] @@ -7370,15 +7369,6 @@ dependencies = [ "rand_core 0.4.2", ] -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "rand_pcg" version = "0.3.1" @@ -7810,7 +7800,7 @@ dependencies = [ "prost", "prost-build", "quickcheck", - "rand 0.7.3", + "rand 0.8.4", "sc-client-api", "sc-network", "sp-api", @@ -7906,7 +7896,7 @@ dependencies = [ "log 0.4.14", "names", "parity-scale-codec", - "rand 0.7.3", + "rand 0.8.4", "regex", "rpassword", "sc-client-api", @@ -8065,7 +8055,7 @@ dependencies = [ "num-traits", "parity-scale-codec", "parking_lot 0.11.2", - "rand 0.7.3", + "rand 0.8.4", "rand_chacha 0.2.2", "retain_mut", "sc-block-builder", @@ -8462,7 +8452,7 @@ dependencies = [ "prost", "prost-build", "quickcheck", - "rand 0.7.3", + "rand 0.8.4", "sc-block-builder", "sc-client-api", "sc-consensus", @@ -8518,7 +8508,7 @@ dependencies = [ "libp2p", "log 0.4.14", "parking_lot 0.11.2", - "rand 0.7.3", + "rand 0.8.4", "sc-block-builder", "sc-client-api", "sc-consensus", @@ -8550,7 +8540,7 @@ dependencies = [ "once_cell", "parity-scale-codec", "parking_lot 0.11.2", - "rand 0.7.3", + "rand 0.8.4", "sc-block-builder", "sc-client-api", "sc-client-db", @@ -8577,7 +8567,7 @@ dependencies = [ "futures 0.3.16", "libp2p", "log 0.4.14", - "rand 0.7.3", + "rand 0.8.4", "sc-utils", "serde_json", "wasm-timer", @@ -8700,7 +8690,7 @@ dependencies = [ "parity-util-mem", "parking_lot 0.11.2", "pin-project 1.0.10", - "rand 0.7.3", + "rand 0.8.4", "sc-block-builder", "sc-chain-spec", "sc-client-api", @@ -8828,7 +8818,7 @@ dependencies = [ "log 0.4.14", "parking_lot 0.11.2", "pin-project 1.0.10", - "rand 0.7.3", + "rand 0.8.4", "serde", "serde_json", "thiserror", @@ -9463,7 +9453,7 @@ dependencies = [ "num-traits", "parity-scale-codec", "primitive-types", - "rand 0.7.3", + "rand 0.8.4", "scale-info", "serde", "sp-debug-derive", @@ -9649,7 +9639,7 @@ dependencies = [ "parity-util-mem", "parking_lot 0.11.2", "primitive-types", - "rand 0.7.3", + "rand 0.8.4", "regex", "scale-info", "schnorrkel", @@ -9797,7 +9787,7 @@ dependencies = [ "merlin", "parity-scale-codec", "parking_lot 0.11.2", - "rand 0.7.3", + "rand 0.8.4", "rand_chacha 0.2.2", "schnorrkel", "serde", @@ -9819,7 +9809,7 @@ name = "sp-npos-elections" version = "4.0.0-dev" dependencies = [ "parity-scale-codec", - "rand 0.7.3", + "rand 0.8.4", "scale-info", "serde", "sp-arithmetic", @@ -9897,7 +9887,7 @@ dependencies = [ "parity-scale-codec", "parity-util-mem", "paste 1.0.6", - "rand 0.7.3", + "rand 0.8.4", "scale-info", "serde", "serde_json", @@ -10041,7 +10031,7 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.11.2", "pretty_assertions", - "rand 0.7.3", + "rand 0.8.4", "smallvec 1.7.0", "sp-core", "sp-externalities", @@ -11153,7 +11143,7 @@ version = "1.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ee73e6e4924fe940354b8d4d98cad5231175d615cd855b758adc658c0aac6a0" dependencies = [ - "cfg-if 1.0.0", + "cfg-if 0.1.10", "rand 0.8.4", "static_assertions", ] diff --git a/bin/node/bench/Cargo.toml b/bin/node/bench/Cargo.toml index 1895117923..1d62b9168a 100644 --- a/bin/node/bench/Cargo.toml +++ b/bin/node/bench/Cargo.toml @@ -33,7 +33,7 @@ hash-db = "0.15.2" tempfile = "3.1.0" fs_extra = "1" hex = "0.4.0" -rand = { version = "0.7.2", features = ["small_rng"] } +rand = { version = "0.8.4", features = ["small_rng"] } lazy_static = "1.4.0" parity-util-mem = { version = "0.10.2", default-features = false, features = ["primitive-types"] } parity-db = { version = "0.3" } diff --git a/client/authority-discovery/Cargo.toml b/client/authority-discovery/Cargo.toml index e3a3ef2a35..d46f55a75a 100644 --- a/client/authority-discovery/Cargo.toml +++ b/client/authority-discovery/Cargo.toml @@ -27,7 +27,7 @@ libp2p = { version = "0.40.0", default-features = false, features = ["kad"] } log = "0.4.8" prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus", version = "0.10.0-dev" } prost = "0.9" -rand = "0.7.2" +rand = "0.8.4" sc-client-api = { version = "4.0.0-dev", path = "../api" } sc-network = { version = "0.10.0-dev", path = "../network" } sp-authority-discovery = { version = "4.0.0-dev", path = "../../primitives/authority-discovery" } diff --git a/client/cli/Cargo.toml b/client/cli/Cargo.toml index f4d1fcccbd..08f7c0e6a8 100644 --- a/client/cli/Cargo.toml +++ b/client/cli/Cargo.toml @@ -21,7 +21,7 @@ hex = "0.4.2" libp2p = "0.40.0" log = "0.4.11" names = { version = "0.12.0", default-features = false } -rand = "0.7.3" +rand = "0.8.4" regex = "1.5.4" rpassword = "5.0.0" serde = "1.0.136" diff --git a/client/consensus/babe/Cargo.toml b/client/consensus/babe/Cargo.toml index 76ec6a2587..5dc590fdb0 100644 --- a/client/consensus/babe/Cargo.toml +++ b/client/consensus/babe/Cargo.toml @@ -47,7 +47,7 @@ futures = "0.3.9" parking_lot = "0.11.2" log = "0.4.8" schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated"] } -rand = "0.7.2" +rand = "0.8.4" merlin = "2.0" thiserror = "1.0" retain_mut = "0.1.4" diff --git a/client/network/Cargo.toml b/client/network/Cargo.toml index 86a0380280..bd463e2598 100644 --- a/client/network/Cargo.toml +++ b/client/network/Cargo.toml @@ -41,7 +41,7 @@ parking_lot = "0.11.2" pin-project = "1.0.10" prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.10.0-dev", path = "../../utils/prometheus" } prost = "0.9" -rand = "0.7.2" +rand = "0.8.4" sc-block-builder = { version = "0.10.0-dev", path = "../block-builder" } sc-client-api = { version = "4.0.0-dev", path = "../api" } sc-peerset = { version = "4.0.0-dev", path = "../peerset" } @@ -69,7 +69,7 @@ libp2p = "0.40.0" assert_matches = "1.3" libp2p = { version = "0.40.0", default-features = false } quickcheck = "1.0.3" -rand = "0.7.2" +rand = "0.8.4" sp-test-primitives = { version = "2.0.0", path = "../../primitives/test-primitives" } sp-tracing = { version = "4.0.0", path = "../../primitives/tracing" } substrate-test-runtime = { version = "2.0.0", path = "../../test-utils/runtime" } diff --git a/client/network/test/Cargo.toml b/client/network/test/Cargo.toml index 2750c613d4..3d11e53325 100644 --- a/client/network/test/Cargo.toml +++ b/client/network/test/Cargo.toml @@ -19,7 +19,7 @@ log = "0.4.8" parking_lot = "0.11.2" futures = "0.3.9" futures-timer = "3.0.1" -rand = "0.7.2" +rand = "0.8.4" libp2p = { version = "0.40.0", default-features = false } sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" } sc-consensus = { version = "0.10.0-dev", path = "../../consensus/common" } diff --git a/client/offchain/Cargo.toml b/client/offchain/Cargo.toml index 5cd823958e..ffbaaf1dc8 100644 --- a/client/offchain/Cargo.toml +++ b/client/offchain/Cargo.toml @@ -21,7 +21,7 @@ futures = "0.3.16" futures-timer = "3.0.2" num_cpus = "1.13" parking_lot = "0.11.2" -rand = "0.7.2" +rand = "0.8.4" sc-client-api = { version = "4.0.0-dev", path = "../api" } sc-network = { version = "0.10.0-dev", path = "../network" } sp-api = { version = "4.0.0-dev", path = "../../primitives/api" } diff --git a/client/peerset/Cargo.toml b/client/peerset/Cargo.toml index ac3590630a..9387d04c73 100644 --- a/client/peerset/Cargo.toml +++ b/client/peerset/Cargo.toml @@ -22,4 +22,4 @@ serde_json = "1.0.74" wasm-timer = "0.2" [dev-dependencies] -rand = "0.7.2" +rand = "0.8.4" diff --git a/client/service/Cargo.toml b/client/service/Cargo.toml index 8424fe31a8..e51074fd77 100644 --- a/client/service/Cargo.toml +++ b/client/service/Cargo.toml @@ -26,7 +26,7 @@ thiserror = "1.0.30" futures = "0.3.16" jsonrpc-pubsub = "18.0" jsonrpc-core = "18.0" -rand = "0.7.3" +rand = "0.8.4" parking_lot = "0.11.2" log = "0.4.11" futures-timer = "3.0.1" diff --git a/client/telemetry/Cargo.toml b/client/telemetry/Cargo.toml index 595a574021..c1b619721d 100644 --- a/client/telemetry/Cargo.toml +++ b/client/telemetry/Cargo.toml @@ -21,7 +21,7 @@ wasm-timer = "0.2.5" libp2p = { version = "0.40.0", default-features = false, features = ["dns-async-std", "tcp-async-io", "wasm-ext", "websocket"] } log = "0.4.8" pin-project = "1.0.10" -rand = "0.7.2" +rand = "0.8.4" serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.74" chrono = "0.4.19" diff --git a/frame/election-provider-multi-phase/Cargo.toml b/frame/election-provider-multi-phase/Cargo.toml index c0d85737ec..0dfe2d5e97 100644 --- a/frame/election-provider-multi-phase/Cargo.toml +++ b/frame/election-provider-multi-phase/Cargo.toml @@ -33,7 +33,7 @@ frame-election-provider-support = { version = "4.0.0-dev", default-features = fa # Optional imports for benchmarking frame-benchmarking = { version = "4.0.0-dev", default-features = false, path = "../benchmarking", optional = true } -rand = { version = "0.7.3", default-features = false, optional = true, features = [ +rand = { version = "0.8.4", default-features = false, optional = true, features = [ "alloc", "small_rng", ] } @@ -41,7 +41,7 @@ strum = { optional = true, default-features = false, version = "0.23.0", feature [dev-dependencies] parking_lot = "0.11.2" -rand = { version = "0.7.3" } +rand = { version = "0.8.4" } sp-core = { version = "5.0.0", default-features = false, path = "../../primitives/core" } sp-io = { version = "5.0.0", path = "../../primitives/io" } sp-npos-elections = { version = "4.0.0-dev", default-features = false, path = "../../primitives/npos-elections" } diff --git a/frame/session/benchmarking/Cargo.toml b/frame/session/benchmarking/Cargo.toml index cd33c5b186..ce6239c9cd 100644 --- a/frame/session/benchmarking/Cargo.toml +++ b/frame/session/benchmarking/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -rand = { version = "0.7.2", default-features = false } +rand = { version = "0.8.4", default-features = false } sp-std = { version = "4.0.0", default-features = false, path = "../../../primitives/std" } sp-runtime = { version = "5.0.0", default-features = false, path = "../../../primitives/runtime" } diff --git a/primitives/arithmetic/Cargo.toml b/primitives/arithmetic/Cargo.toml index e3294ff749..86ec00b819 100644 --- a/primitives/arithmetic/Cargo.toml +++ b/primitives/arithmetic/Cargo.toml @@ -27,7 +27,7 @@ serde = { version = "1.0.136", optional = true, features = ["derive"] } sp-debug-derive = { version = "4.0.0", default-features = false, path = "../debug-derive" } [dev-dependencies] -rand = "0.7.2" +rand = "0.8.4" criterion = "0.3" primitive-types = "0.10.1" diff --git a/primitives/core/Cargo.toml b/primitives/core/Cargo.toml index bd41635a1d..d021127357 100644 --- a/primitives/core/Cargo.toml +++ b/primitives/core/Cargo.toml @@ -27,7 +27,7 @@ wasmi = { version = "0.9.1", optional = true } hash-db = { version = "0.15.2", default-features = false } hash256-std-hasher = { version = "0.15.2", default-features = false } base58 = { version = "0.2.0", optional = true } -rand = { version = "0.7.3", optional = true, features = ["small_rng"] } +rand = { version = "0.8.4", optional = true, features = ["small_rng"] } substrate-bip39 = { version = "0.4.4", optional = true } tiny-bip39 = { version = "0.8.2", optional = true } regex = { version = "1.5.4", optional = true } @@ -66,7 +66,7 @@ sp-runtime-interface = { version = "5.0.0", default-features = false, path = ".. [dev-dependencies] sp-serializer = { version = "4.0.0-dev", path = "../serializer" } hex-literal = "0.3.4" -rand = "0.7.2" +rand = "0.8.4" criterion = "0.3.3" serde_json = "1.0" sp-core-hashing-proc-macro = { version = "4.0.0-dev", path = "./hashing/proc-macro" } diff --git a/primitives/keystore/Cargo.toml b/primitives/keystore/Cargo.toml index 26748d3227..055ccdd7c5 100644 --- a/primitives/keystore/Cargo.toml +++ b/primitives/keystore/Cargo.toml @@ -26,7 +26,7 @@ sp-core = { version = "5.0.0", path = "../core" } sp-externalities = { version = "0.11.0", path = "../externalities", default-features = false } [dev-dependencies] -rand = "0.7.2" +rand = "0.8.4" rand_chacha = "0.2.2" [features] diff --git a/primitives/npos-elections/Cargo.toml b/primitives/npos-elections/Cargo.toml index 88475e10f7..0d30108a87 100644 --- a/primitives/npos-elections/Cargo.toml +++ b/primitives/npos-elections/Cargo.toml @@ -24,7 +24,7 @@ sp-runtime = { version = "5.0.0", path = "../runtime", default-features = false [dev-dependencies] substrate-test-utils = { version = "4.0.0-dev", path = "../../test-utils" } -rand = "0.7.3" +rand = "0.8.4" [features] default = ["std"] diff --git a/primitives/runtime/Cargo.toml b/primitives/runtime/Cargo.toml index 7b58482b2c..5fe432b295 100644 --- a/primitives/runtime/Cargo.toml +++ b/primitives/runtime/Cargo.toml @@ -25,7 +25,7 @@ sp-std = { version = "4.0.0", default-features = false, path = "../std" } sp-io = { version = "5.0.0", default-features = false, path = "../io" } log = { version = "0.4.14", default-features = false } paste = "1.0" -rand = { version = "0.7.2", optional = true } +rand = { version = "0.8.4", optional = true } impl-trait-for-tuples = "0.2.1" parity-util-mem = { version = "0.10.2", default-features = false, features = ["primitive-types"] } hash256-std-hasher = { version = "0.15.2", default-features = false } @@ -33,7 +33,7 @@ either = { version = "1.5", default-features = false } [dev-dependencies] serde_json = "1.0.74" -rand = "0.7.2" +rand = "0.8.4" sp-state-machine = { version = "0.11.0", path = "../state-machine" } sp-api = { version = "4.0.0-dev", path = "../api" } substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" } diff --git a/primitives/state-machine/Cargo.toml b/primitives/state-machine/Cargo.toml index 15720688c0..0dfa037fb4 100644 --- a/primitives/state-machine/Cargo.toml +++ b/primitives/state-machine/Cargo.toml @@ -25,7 +25,7 @@ sp-core = { version = "5.0.0", path = "../core", default-features = false } sp-panic-handler = { version = "4.0.0", path = "../panic-handler", optional = true } codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false } num-traits = { version = "0.2.8", default-features = false } -rand = { version = "0.7.2", optional = true } +rand = { version = "0.8.4", optional = true } sp-externalities = { version = "0.11.0", path = "../externalities", default-features = false } smallvec = "1.7.0" sp-std = { version = "4.0.0", default-features = false, path = "../std" } @@ -35,7 +35,7 @@ tracing = { version = "0.1.29", optional = true } hex-literal = "0.3.4" sp-runtime = { version = "5.0.0", path = "../runtime" } pretty_assertions = "1.0.0" -rand = "0.7.2" +rand = "0.8.4" [features] default = ["std"]