Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rand dependencies to those in 0.7 #309

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Expand Up @@ -26,9 +26,9 @@ walkdir = "2.2.7"
tinytemplate = { version = "1.0.1", optional = true }
cast = "0.2"
num-traits = "0.2"
rand_os = "0.1"
rand_xoshiro = "0.1"
rand_core = { version = "0.3", default-features = false }
rand_os = "0.2"
rand_xoshiro = "0.3"
rand_core = { version = "0.5", default-features = false }
rayon = "1.0.3"
# These are needed for the minimal-versions build
rayon-core = ">=1.4.1"
Expand All @@ -38,7 +38,7 @@ libc = ">=0.1.5"
tempdir = "0.3.7"
approx = "0.3"
quickcheck = { version = "0.8, <0.8.3", default-features = false }
rand = "0.6"
rand = "0.7"

[badges]
travis-ci = { repository = "bheisler/criterion.rs" }
Expand Down
2 changes: 1 addition & 1 deletion src/stats/rand_util.rs
Expand Up @@ -7,7 +7,7 @@ use std::cell::RefCell;
pub type Rng = Xoshiro256StarStar;

thread_local! {
static SEED_RAND: RefCell<OsRng> = RefCell::new(OsRng::new().unwrap());
static SEED_RAND: RefCell<OsRng> = RefCell::new(OsRng);
}

pub fn new_rng() -> Rng {
Expand Down
2 changes: 1 addition & 1 deletion src/stats/test.rs
@@ -1,5 +1,5 @@
use rand::distributions::{Distribution, Standard};
use rand::{FromEntropy, Rng};
use rand::prelude::*;
use rand_xoshiro::Xoshiro256StarStar;

pub fn vec<T>(size: usize, start: usize) -> Option<Vec<T>>
Expand Down