Skip to content

Commit

Permalink
Merge branch 'master' into nv-publish-for-substrate
Browse files Browse the repository at this point in the history
* master:
  update rand pacakge to 0.8.3 (#20)
  fix edition and prepare publish (#19)
  • Loading branch information
ordian committed Apr 21, 2021
2 parents 9c16f3a + b048fe1 commit 5d020c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,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"] }

[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

0 comments on commit 5d020c6

Please sign in to comment.