Skip to content
This repository was archived by the owner on Jun 7, 2026. It is now read-only.

Commit 055cc14

Browse files
pinkforeststr4d
andcommitted
Bump to rust-random 0.9
Co-authored-by: Jack Grigg <thestr4d@gmail.com>
1 parent 8534991 commit 055cc14

4 files changed

Lines changed: 72 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this library adheres to Rust's notion of
88
## [Unreleased]
99
### Changed
1010
- MSRV is now 1.63.0.
11+
- Migrated to `ff 0.14`, `rand_core 0.9`.
1112

1213
## [0.13.0] - 2022-12-06
1314
### Changed

Cargo.lock

Lines changed: 63 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ repository = "https://github.com/zkcrypto/group"
1717

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

2525
# Crate for exposing the dynamic memory usage of the w-NAF structs.
@@ -33,3 +33,6 @@ wnaf-memuse = ["alloc", "memuse"]
3333

3434
[badges]
3535
maintenance = { status = "actively-developed" }
36+
37+
[patch.crates-io]
38+
ff = { git = "https://github.com/zkcrypto/ff.git", rev = "241caff9bcedafbe279b5a4d875461f66b3f9701" }

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)