Skip to content

Commit 72a596d

Browse files
committed
bump rand_core from 0.6.4 to 0.9.0
1 parent 63c2e83 commit 72a596d

File tree

8 files changed

+171
-161
lines changed

8 files changed

+171
-161
lines changed

Cargo.toml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@ categories = ["cryptography", "no-std"]
1010
rust-version = "1.83"
1111

1212
[dependencies]
13-
crypto-bigint = { version = "0.6", default-features = false, features = ["rand_core"] }
14-
rand_core = { version = "0.6.4", default-features = false }
13+
crypto-bigint = { version = "0.7.0-pre", default-features = false, features = ["rand_core"] }
14+
rand_core = { version = "0.9.0", default-features = false }
1515

1616
# Optional dependencies used in tests and benchmarks
1717
openssl = { version = "0.10.39", optional = true, features = ["vendored"] }
1818
rug = { version = "1.26", default-features = false, features = ["integer"], optional = true }
1919
glass_pumpkin = { version = "1", optional = true }
2020
rayon = { version = "1", optional = true }
21-
2221
[dev-dependencies]
2322
# need `crypto-bigint` with `alloc` to test `BoxedUint`
24-
crypto-bigint = { version = "0.6.1", default-features = false, features = ["alloc"] }
25-
rand_chacha = "0.3"
23+
crypto-bigint = { version = "0.7.0-pre", default-features = false, features = ["alloc"] }
24+
rand_chacha = "0.9"
2625
criterion = { version = "0.5", features = ["html_reports"] }
2726
num-modular = { version = "0.5", features = ["num-bigint"] }
2827
num-bigint = "0.4"
@@ -33,7 +32,7 @@ num_cpus = "1.16"
3332

3433
[features]
3534
default = ["default-rng"]
36-
default-rng = ["rand_core/getrandom"]
35+
default-rng = ["rand_core/os_rng"]
3736
tests-openssl = ["openssl"]
3837
tests-gmp = ["rug/std"]
3938
tests-glass-pumpkin = ["glass_pumpkin"]
@@ -53,3 +52,16 @@ harness = false
5352
[[bench]]
5453
name = "cctv"
5554
harness = false
55+
56+
[patch.crates-io]
57+
# https://github.com/RustCrypto/crypto-bigint/pull/762
58+
# https://github.com/RustCrypto/crypto-bigint/pull/765
59+
crypto-bigint = { git = "https://github.com/RustCrypto/crypto-bigint.git" }
60+
61+
# https://github.com/LF-Decentralized-Trust-labs/agora-glass_pumpkin/pull/26
62+
glass_pumpkin = { git = "https://github.com/baloo/agora-glass_pumpkin.git", branch = "baloo/rand-core/0.9" }
63+
# https://github.com/rust-num/num-bigint/pull/317
64+
num-bigint = { git = "https://github.com/bionicles/num-bigint.git" }
65+
66+
# https://github.com/rust-random/rand/pull/1592
67+
rand_core = { git = "https://github.com/baloo/rand.git", branch = "baloo/rand_core/relax-blanket" }

0 commit comments

Comments
 (0)