Skip to content

Commit 5cc46c1

Browse files
committed
update rand pacakge to 0.8.3
1 parent 51eea13 commit 5cc46c1

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ default = ["rustc-serialize"]
1616
name = "api"
1717

1818
[dependencies]
19-
rand = { version = "0.5", features = ["i128_support"], default-features = false }
19+
rand = { version = "0.8.3", default-features = false }
2020
rustc-serialize = { version = "0.3", optional = true }
2121
byteorder = { version = "1.0", features = ["i128"], default-features = false }
2222
crunchy = "0.2.1"
2323
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
2424
rustc-hex = { version = "2", default-features = false }
2525

2626
[dev-dependencies]
27-
rand = { version = "0.5", features = ["i128_support"] }
27+
rand = { version = "0.8.3", features = ["std_rng"] }
2828

2929
[dev-dependencies.bincode]
3030
version = "0.6"

src/fields/tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use rand::{Rng, SeedableRng, StdRng};
1+
use rand::{Rng, SeedableRng, rngs::StdRng};
2+
23
use super::FieldElement;
34

45
fn can_invert<F: FieldElement>() {

src/groups/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,8 @@ fn test_batch_bilinearity_empty() {
10961096

10971097
#[test]
10981098
fn test_batch_bilinearity_one() {
1099-
use rand::{SeedableRng, StdRng};
1099+
use rand::{SeedableRng, rngs::StdRng};
1100+
11001101
let seed = [
11011102
0, 0, 0, 0, 0, 0, 64, 13, // 103245
11021103
0, 0, 0, 0, 0, 0, 176, 2, // 191922
@@ -1116,7 +1117,7 @@ fn test_batch_bilinearity_one() {
11161117

11171118
#[test]
11181119
fn test_batch_bilinearity_fifty() {
1119-
use rand::{SeedableRng, StdRng};
1120+
use rand::{SeedableRng, rngs::StdRng};
11201121
let seed = [
11211122
0, 0, 0, 0, 0, 0, 64, 13, // 103245
11221123
0, 0, 0, 0, 0, 0, 176, 2, // 191922
@@ -1148,7 +1149,7 @@ fn test_batch_bilinearity_fifty() {
11481149

11491150
#[test]
11501151
fn test_bilinearity() {
1151-
use rand::{SeedableRng, StdRng};
1152+
use rand::{SeedableRng, rngs::StdRng};
11521153
let seed = [
11531154
0, 0, 0, 0, 0, 0, 64, 13, // 103245
11541155
0, 0, 0, 0, 0, 0, 176, 2, // 191922

src/groups/tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ pub fn group_trials<G: GroupElement>() {
9090

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

93-
use rand::{SeedableRng, StdRng};
93+
use rand::{SeedableRng, rngs::StdRng};
94+
9495
let seed = [
9596
0, 0, 0, 0, 0, 0, 64, 13, // 103245
9697
0, 0, 0, 0, 0, 0, 176, 2, // 191922

0 commit comments

Comments
 (0)