Update rand to v0.8.5 (#987)

* Update rand to v0.8.5

* Enable std_rng feature on rand

* Enable std_rng only when std is enabled

* Revert "Enable std_rng only when std is enabled"

This reverts commit 8fb3b72dbd6dc18bc19868b999b5b07cea4b7392.
This commit is contained in:
Keith Yeung
2022-02-14 15:14:05 -08:00
committed by GitHub
parent 774cdac585
commit e7d354ca14
4 changed files with 37 additions and 47 deletions
+34 -44
View File
@@ -1610,7 +1610,7 @@ dependencies = [
"polkadot-node-subsystem", "polkadot-node-subsystem",
"polkadot-overseer", "polkadot-overseer",
"polkadot-primitives", "polkadot-primitives",
"rand 0.8.4", "rand 0.8.5",
"sc-cli", "sc-cli",
"sc-client-api", "sc-client-api",
"sc-consensus", "sc-consensus",
@@ -2046,7 +2046,7 @@ dependencies = [
"polkadot-primitives", "polkadot-primitives",
"polkadot-service", "polkadot-service",
"polkadot-test-service", "polkadot-test-service",
"rand 0.7.3", "rand 0.8.5",
"sc-basic-authorship", "sc-basic-authorship",
"sc-chain-spec", "sc-chain-spec",
"sc-cli", "sc-cli",
@@ -2497,7 +2497,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493c" checksum = "cfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493c"
dependencies = [ dependencies = [
"byteorder", "byteorder",
"rand 0.8.4", "rand 0.8.5",
"rustc-hex", "rustc-hex",
"static_assertions", "static_assertions",
] ]
@@ -4048,7 +4048,7 @@ dependencies = [
"pin-project 1.0.10", "pin-project 1.0.10",
"prost", "prost",
"prost-build", "prost-build",
"rand 0.8.4", "rand 0.8.5",
"ring", "ring",
"rw-stream-sink", "rw-stream-sink",
"sha2 0.9.8", "sha2 0.9.8",
@@ -4186,7 +4186,7 @@ dependencies = [
"libp2p-core", "libp2p-core",
"libp2p-swarm", "libp2p-swarm",
"log", "log",
"rand 0.8.4", "rand 0.8.5",
"smallvec", "smallvec",
"socket2 0.4.2", "socket2 0.4.2",
"void", "void",
@@ -4238,7 +4238,7 @@ dependencies = [
"log", "log",
"prost", "prost",
"prost-build", "prost-build",
"rand 0.8.4", "rand 0.8.5",
"sha2 0.9.8", "sha2 0.9.8",
"snow", "snow",
"static_assertions", "static_assertions",
@@ -4329,7 +4329,7 @@ dependencies = [
"log", "log",
"prost", "prost",
"prost-build", "prost-build",
"rand 0.8.4", "rand 0.8.5",
"sha2 0.9.8", "sha2 0.9.8",
"thiserror", "thiserror",
"unsigned-varint 0.7.1", "unsigned-varint 0.7.1",
@@ -4481,7 +4481,7 @@ dependencies = [
"libsecp256k1-core", "libsecp256k1-core",
"libsecp256k1-gen-ecmult", "libsecp256k1-gen-ecmult",
"libsecp256k1-gen-genmult", "libsecp256k1-gen-genmult",
"rand 0.8.4", "rand 0.8.5",
"serde", "serde",
"sha2 0.9.8", "sha2 0.9.8",
"typenum", "typenum",
@@ -4768,7 +4768,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd2c2cc134e57461f0898b0e921f0a7819b5e3f3a4335b9aa390ce81a5f36fb9" checksum = "fd2c2cc134e57461f0898b0e921f0a7819b5e3f3a4335b9aa390ce81a5f36fb9"
dependencies = [ dependencies = [
"futures 0.3.21", "futures 0.3.21",
"rand 0.8.4", "rand 0.8.5",
"thrift", "thrift",
] ]
@@ -4964,7 +4964,7 @@ dependencies = [
"num-complex", "num-complex",
"num-rational 0.4.0", "num-rational 0.4.0",
"num-traits", "num-traits",
"rand 0.8.4", "rand 0.8.5",
"rand_distr", "rand_distr",
"simba", "simba",
"typenum", "typenum",
@@ -4987,7 +4987,7 @@ version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10a8690bf09abf659851e58cd666c3d37ac6af07c2bd7a9e332cfba471715775" checksum = "10a8690bf09abf659851e58cd666c3d37ac6af07c2bd7a9e332cfba471715775"
dependencies = [ dependencies = [
"rand 0.8.4", "rand 0.8.5",
] ]
[[package]] [[package]]
@@ -5493,7 +5493,7 @@ dependencies = [
"pallet-session", "pallet-session",
"pallet-timestamp", "pallet-timestamp",
"parity-scale-codec", "parity-scale-codec",
"rand 0.7.3", "rand 0.8.5",
"scale-info", "scale-info",
"serde", "serde",
"sp-consensus-aura", "sp-consensus-aura",
@@ -6346,7 +6346,7 @@ dependencies = [
"lz4", "lz4",
"memmap2 0.2.3", "memmap2 0.2.3",
"parking_lot 0.11.2", "parking_lot 0.11.2",
"rand 0.8.4", "rand 0.8.5",
"snap", "snap",
] ]
@@ -6769,7 +6769,7 @@ dependencies = [
"polkadot-node-subsystem", "polkadot-node-subsystem",
"polkadot-node-subsystem-util", "polkadot-node-subsystem-util",
"polkadot-primitives", "polkadot-primitives",
"rand 0.8.4", "rand 0.8.5",
"sp-core", "sp-core",
"sp-keystore", "sp-keystore",
"thiserror", "thiserror",
@@ -6790,7 +6790,7 @@ dependencies = [
"polkadot-node-subsystem", "polkadot-node-subsystem",
"polkadot-node-subsystem-util", "polkadot-node-subsystem-util",
"polkadot-primitives", "polkadot-primitives",
"rand 0.8.4", "rand 0.8.5",
"sc-network", "sc-network",
"thiserror", "thiserror",
"tracing", "tracing",
@@ -7003,7 +7003,7 @@ dependencies = [
"polkadot-node-subsystem", "polkadot-node-subsystem",
"polkadot-node-subsystem-util", "polkadot-node-subsystem-util",
"polkadot-primitives", "polkadot-primitives",
"rand 0.8.4", "rand 0.8.5",
"rand_chacha 0.3.1", "rand_chacha 0.3.1",
"sc-network", "sc-network",
"sp-application-crypto", "sp-application-crypto",
@@ -7227,7 +7227,7 @@ dependencies = [
"polkadot-node-subsystem", "polkadot-node-subsystem",
"polkadot-node-subsystem-util", "polkadot-node-subsystem-util",
"polkadot-primitives", "polkadot-primitives",
"rand 0.8.4", "rand 0.8.5",
"thiserror", "thiserror",
"tracing", "tracing",
] ]
@@ -7248,7 +7248,7 @@ dependencies = [
"polkadot-core-primitives", "polkadot-core-primitives",
"polkadot-node-subsystem-util", "polkadot-node-subsystem-util",
"polkadot-parachain", "polkadot-parachain",
"rand 0.8.4", "rand 0.8.5",
"sc-executor", "sc-executor",
"sc-executor-common", "sc-executor-common",
"sc-executor-wasmtime", "sc-executor-wasmtime",
@@ -7440,7 +7440,7 @@ dependencies = [
"polkadot-node-subsystem", "polkadot-node-subsystem",
"polkadot-overseer", "polkadot-overseer",
"polkadot-primitives", "polkadot-primitives",
"rand 0.8.4", "rand 0.8.5",
"sp-application-crypto", "sp-application-crypto",
"sp-core", "sp-core",
"sp-keystore", "sp-keystore",
@@ -7768,7 +7768,7 @@ dependencies = [
"parity-scale-codec", "parity-scale-codec",
"polkadot-primitives", "polkadot-primitives",
"polkadot-runtime-metrics", "polkadot-runtime-metrics",
"rand 0.8.4", "rand 0.8.5",
"rand_chacha 0.3.1", "rand_chacha 0.3.1",
"rustc-hex", "rustc-hex",
"scale-info", "scale-info",
@@ -8028,7 +8028,7 @@ dependencies = [
"polkadot-runtime-parachains", "polkadot-runtime-parachains",
"polkadot-service", "polkadot-service",
"polkadot-test-runtime", "polkadot-test-runtime",
"rand 0.8.4", "rand 0.8.5",
"sc-authority-discovery", "sc-authority-discovery",
"sc-chain-spec", "sc-chain-spec",
"sc-cli", "sc-cli",
@@ -8322,20 +8322,19 @@ dependencies = [
"libc", "libc",
"rand_chacha 0.2.2", "rand_chacha 0.2.2",
"rand_core 0.5.1", "rand_core 0.5.1",
"rand_hc 0.2.0", "rand_hc",
"rand_pcg", "rand_pcg",
] ]
[[package]] [[package]]
name = "rand" name = "rand"
version = "0.8.4" version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [ dependencies = [
"libc", "libc",
"rand_chacha 0.3.1", "rand_chacha 0.3.1",
"rand_core 0.6.3", "rand_core 0.6.3",
"rand_hc 0.3.1",
] ]
[[package]] [[package]]
@@ -8383,7 +8382,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "964d548f8e7d12e102ef183a0de7e98180c9f8729f555897a857b96e48122d2f" checksum = "964d548f8e7d12e102ef183a0de7e98180c9f8729f555897a857b96e48122d2f"
dependencies = [ dependencies = [
"num-traits", "num-traits",
"rand 0.8.4", "rand 0.8.5",
] ]
[[package]] [[package]]
@@ -8395,15 +8394,6 @@ dependencies = [
"rand_core 0.5.1", "rand_core 0.5.1",
] ]
[[package]]
name = "rand_hc"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7"
dependencies = [
"rand_core 0.6.3",
]
[[package]] [[package]]
name = "rand_pcg" name = "rand_pcg"
version = "0.2.1" version = "0.2.1"
@@ -9372,7 +9362,7 @@ dependencies = [
"log", "log",
"parity-scale-codec", "parity-scale-codec",
"parking_lot 0.11.2", "parking_lot 0.11.2",
"rand 0.8.4", "rand 0.8.5",
"sc-block-builder", "sc-block-builder",
"sc-chain-spec", "sc-chain-spec",
"sc-client-api", "sc-client-api",
@@ -10293,7 +10283,7 @@ dependencies = [
"aes-gcm", "aes-gcm",
"blake2", "blake2",
"chacha20poly1305", "chacha20poly1305",
"rand 0.8.4", "rand 0.8.5",
"rand_core 0.6.3", "rand_core 0.6.3",
"ring", "ring",
"rustc_version 0.3.3", "rustc_version 0.3.3",
@@ -10335,7 +10325,7 @@ dependencies = [
"futures 0.3.21", "futures 0.3.21",
"httparse", "httparse",
"log", "log",
"rand 0.8.4", "rand 0.8.5",
"sha-1 0.9.8", "sha-1 0.9.8",
] ]
@@ -11235,7 +11225,7 @@ dependencies = [
"lazy_static", "lazy_static",
"nalgebra", "nalgebra",
"num-traits", "num-traits",
"rand 0.8.4", "rand 0.8.5",
] ]
[[package]] [[package]]
@@ -11435,7 +11425,7 @@ checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22"
dependencies = [ dependencies = [
"cfg-if 1.0.0", "cfg-if 1.0.0",
"libc", "libc",
"rand 0.8.4", "rand 0.8.5",
"redox_syscall 0.2.10", "redox_syscall 0.2.10",
"remove_dir_all", "remove_dir_all",
"winapi 0.3.9", "winapi 0.3.9",
@@ -11816,7 +11806,7 @@ dependencies = [
"ipnet", "ipnet",
"lazy_static", "lazy_static",
"log", "log",
"rand 0.8.4", "rand 0.8.5",
"smallvec", "smallvec",
"thiserror", "thiserror",
"tinyvec", "tinyvec",
@@ -11886,7 +11876,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ee73e6e4924fe940354b8d4d98cad5231175d615cd855b758adc658c0aac6a0" checksum = "4ee73e6e4924fe940354b8d4d98cad5231175d615cd855b758adc658c0aac6a0"
dependencies = [ dependencies = [
"cfg-if 1.0.0", "cfg-if 1.0.0",
"rand 0.8.4", "rand 0.7.3",
"static_assertions", "static_assertions",
] ]
@@ -12371,7 +12361,7 @@ dependencies = [
"mach", "mach",
"memoffset", "memoffset",
"more-asserts", "more-asserts",
"rand 0.8.4", "rand 0.8.5",
"region", "region",
"rustix", "rustix",
"thiserror", "thiserror",
@@ -12823,7 +12813,7 @@ dependencies = [
"log", "log",
"nohash-hasher", "nohash-hasher",
"parking_lot 0.11.2", "parking_lot 0.11.2",
"rand 0.8.4", "rand 0.8.5",
"static_assertions", "static_assertions",
] ]
+1 -1
View File
@@ -29,7 +29,7 @@ codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "deriv
futures = { version = "0.3.1", features = ["compat"] } futures = { version = "0.3.1", features = ["compat"] }
futures-timer = "3.0.2" futures-timer = "3.0.2"
tracing = "0.1.22" tracing = "0.1.22"
rand = "0.8.3" rand = "0.8.5"
[dev-dependencies] [dev-dependencies]
tokio = { version = "1.10", features = ["macros"] } tokio = { version = "1.10", features = ["macros"] }
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies] [dependencies]
log = { version = "0.4.0", default-features = false } log = { version = "0.4.0", default-features = false }
codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "2.3.0" } codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "2.3.0" }
rand = { version = "0.7.2", default-features = false } rand = { version = "0.8.5", features = ["std_rng"], default-features = false }
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] } scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.132", default-features = false } serde = { version = "1.0.132", default-features = false }
+1 -1
View File
@@ -6,7 +6,7 @@ edition = "2021"
[dependencies] [dependencies]
codec = { package = "parity-scale-codec", version = "2.3.0" } codec = { package = "parity-scale-codec", version = "2.3.0" }
rand = "0.7.3" rand = "0.8.5"
serde = { version = "1.0.132", features = ["derive"] } serde = { version = "1.0.132", features = ["derive"] }
async-trait = "0.1.42" async-trait = "0.1.42"
tokio = { version = "1.10", features = ["macros"] } tokio = { version = "1.10", features = ["macros"] }