Skip to content

Commit d182bbf

Browse files
committed
Update rand to 0.7
1 parent a337b61 commit d182bbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

integration-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ unstable = []
1818
string_cache = { version = "0.7", path = ".." }
1919

2020
[dev-dependencies]
21-
rand = "0.4"
21+
rand = "0.7"
2222
string_cache_codegen = { version = "0.4", path = "../string-cache-codegen" }
2323

2424
[build-dependencies]

integration-tests/src/bench.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ macro_rules! bench_rand ( ($name:ident, $len:expr) => (
184184
fn $name(b: &mut Bencher) {
185185
use std::str;
186186
use rand;
187-
use rand::Rng;
187+
use rand::{RngCore, SeedableRng};
188188

189-
let mut gen = rand::weak_rng();
189+
let mut gen = rand::rngs::SmallRng::from_entropy();
190190
b.iter(|| {
191191
// We have to generate new atoms on every iter, because
192192
// the dynamic atom table isn't reset.

0 commit comments

Comments
 (0)