Skip to content

Commit b048fe1

Browse files
authored
update rand pacakge to 0.8.3 (#20)
1 parent 51eea13 commit b048fe1

4 files changed

Lines changed: 7 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use rand::{Rng, SeedableRng, StdRng};
1+
use rand::{Rng, SeedableRng, rngs::StdRng};
22
use super::FieldElement;
33

44
fn can_invert<F: FieldElement>() {

src/groups/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ 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};
11001100
let seed = [
11011101
0, 0, 0, 0, 0, 0, 64, 13, // 103245
11021102
0, 0, 0, 0, 0, 0, 176, 2, // 191922
@@ -1116,7 +1116,7 @@ fn test_batch_bilinearity_one() {
11161116

11171117
#[test]
11181118
fn test_batch_bilinearity_fifty() {
1119-
use rand::{SeedableRng, StdRng};
1119+
use rand::{SeedableRng, rngs::StdRng};
11201120
let seed = [
11211121
0, 0, 0, 0, 0, 0, 64, 13, // 103245
11221122
0, 0, 0, 0, 0, 0, 176, 2, // 191922
@@ -1148,7 +1148,7 @@ fn test_batch_bilinearity_fifty() {
11481148

11491149
#[test]
11501150
fn test_bilinearity() {
1151-
use rand::{SeedableRng, StdRng};
1151+
use rand::{SeedableRng, rngs::StdRng};
11521152
let seed = [
11531153
0, 0, 0, 0, 0, 0, 64, 13, // 103245
11541154
0, 0, 0, 0, 0, 0, 176, 2, // 191922

src/groups/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ 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};
9494
let seed = [
9595
0, 0, 0, 0, 0, 0, 64, 13, // 103245
9696
0, 0, 0, 0, 0, 0, 176, 2, // 191922

0 commit comments

Comments
 (0)