Skip to content

Commit 06ac6fb

Browse files
committed
Bump to rust-random 0.9
1 parent 0c5b044 commit 06ac6fb

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ edition = "2021"
1616

1717
[dependencies]
1818
ff = { version = "0.13", default-features = false }
19-
rand = { version = "0.8", optional = true, default-features = false }
20-
rand_core = { version = "0.6", default-features = false }
21-
rand_xorshift = { version = "0.3", optional = true }
19+
rand = { version = "0.9", optional = true, default-features = false }
20+
rand_core = { version = "0.9", default-features = false }
21+
rand_xorshift = { version = "0.4", optional = true }
2222
subtle = { version = "2.2.1", default-features = false }
2323

2424
# Crate for exposing the dynamic memory usage of the w-NAF structs.

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.56.0
1+
1.66.0

src/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ fn random_transformation_tests<G: PrimeCurve>() {
378378
for _ in 0..10 {
379379
let mut v = (0..1000).map(|_| G::random(&mut rng)).collect::<Vec<_>>();
380380

381-
use rand::distributions::{Distribution, Uniform};
382-
let between = Uniform::new(0, 1000);
381+
use rand::distr::{Distribution, Uniform};
382+
let between = Uniform::new(0, 1000).unwrap();
383383
// Sprinkle in some normalized points
384384
for _ in 0..5 {
385385
v[between.sample(&mut rng)] = G::identity();

0 commit comments

Comments
 (0)