Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ default = ["rustc-serialize"]
name = "api"

[dependencies]
rand = { version = "0.5", features = ["i128_support"], default-features = false }
rand = { version = "0.8.3", default-features = false }
rustc-serialize = { version = "0.3", optional = true }
byteorder = { version = "1.0", features = ["i128"], default-features = false }
crunchy = "0.2.1"
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
rustc-hex = { version = "2", default-features = false }

[dev-dependencies]
rand = { version = "0.5", features = ["i128_support"] }
rand = { version = "0.8.3", features = ["std_rng"] }
Copy link

@niklasad1 niklasad1 Apr 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this dev-feature will be leaked into features but it was like that before so probably fine.


[dev-dependencies.bincode]
version = "0.6"
Expand Down
2 changes: 1 addition & 1 deletion src/fields/tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use rand::{Rng, SeedableRng, StdRng};
use rand::{Rng, SeedableRng, rngs::StdRng};
use super::FieldElement;

fn can_invert<F: FieldElement>() {
Expand Down
6 changes: 3 additions & 3 deletions src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ fn test_batch_bilinearity_empty() {

#[test]
fn test_batch_bilinearity_one() {
use rand::{SeedableRng, StdRng};
use rand::{SeedableRng, rngs::StdRng};
let seed = [
0, 0, 0, 0, 0, 0, 64, 13, // 103245
0, 0, 0, 0, 0, 0, 176, 2, // 191922
Expand All @@ -1116,7 +1116,7 @@ fn test_batch_bilinearity_one() {

#[test]
fn test_batch_bilinearity_fifty() {
use rand::{SeedableRng, StdRng};
use rand::{SeedableRng, rngs::StdRng};
let seed = [
0, 0, 0, 0, 0, 0, 64, 13, // 103245
0, 0, 0, 0, 0, 0, 176, 2, // 191922
Expand Down Expand Up @@ -1148,7 +1148,7 @@ fn test_batch_bilinearity_fifty() {

#[test]
fn test_bilinearity() {
use rand::{SeedableRng, StdRng};
use rand::{SeedableRng, rngs::StdRng};
let seed = [
0, 0, 0, 0, 0, 0, 64, 13, // 103245
0, 0, 0, 0, 0, 0, 176, 2, // 191922
Expand Down
2 changes: 1 addition & 1 deletion src/groups/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub fn group_trials<G: GroupElement>() {

assert!((G::one() * (-Fr::one()) + G::one()).is_zero());

use rand::{SeedableRng, StdRng};
use rand::{SeedableRng, rngs::StdRng};
let seed = [
0, 0, 0, 0, 0, 0, 64, 13, // 103245
0, 0, 0, 0, 0, 0, 176, 2, // 191922
Expand Down