2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-29 16:55:34 +00:00

rand: update to 0.8

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
Marc-Antoine Perennou 2020-12-23 22:12:16 +01:00
parent fde2f58610
commit 8823c460fc
2 changed files with 4 additions and 4 deletions

View file

@ -99,10 +99,10 @@ wasm-bindgen-test = "0.3.10"
[dev-dependencies]
femme = "2.1.1"
rand = "0.7.3"
rand = "0.8.0"
tempfile = "3.1.0"
futures = "0.3.4"
rand_xorshift = "0.2.0"
rand_xorshift = "0.3.0"
[[test]]
name = "stream"

View file

@ -345,8 +345,8 @@ fn drops() {
for _ in 0..RUNS {
let mut rng = rand_xorshift::XorShiftRng::seed_from_u64(0);
task::block_on(async move {
let steps = rng.gen_range(0, 10_000);
let additional = rng.gen_range(0, 50);
let steps = rng.gen_range(0..10_000);
let additional = rng.gen_range(0..50);
DROPS.store(0, Ordering::SeqCst);
let (s, r) = channel::<DropCounter>(50);