update rand pacakge to 0.8.3 (#20)

This commit is contained in:
girazoki
2021-04-21 14:45:48 +02:00
committed by GitHub
parent 51eea1334c
commit b048fe1d84
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ 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"
@@ -24,7 +24,7 @@ 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"
+1 -1
View File
@@ -1,4 +1,4 @@
use rand::{Rng, SeedableRng, StdRng};
use rand::{Rng, SeedableRng, rngs::StdRng};
use super::FieldElement;
fn can_invert<F: FieldElement>() {
+3 -3
View File
@@ -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
@@ -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
@@ -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
+1 -1
View File
@@ -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