You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
From 704f030d74f2b5b649d8936977d4360154cfaf41 Mon Sep 17 00:00:00 2001
|
|
From: Josh Stone <cuviper@gmail.com>
|
|
Date: Mon, 27 Jan 2020 16:29:48 -0800
|
|
Subject: [PATCH] Upgrade to rand 0.7.3
|
|
|
|
---
|
|
tests/set.rs | 5 ++---
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/tests/set.rs b/tests/set.rs
|
|
index 332f3f6f0771..3fc0717053b4 100644
|
|
--- a/tests/set.rs
|
|
+++ b/tests/set.rs
|
|
@@ -1,7 +1,7 @@
|
|
#![cfg(not(miri))] // FIXME: takes too long
|
|
|
|
use hashbrown::HashSet;
|
|
-use rand::{distributions::Alphanumeric, Rng, SeedableRng, XorShiftRng};
|
|
+use rand::{distributions::Alphanumeric, rngs::SmallRng, Rng, SeedableRng};
|
|
|
|
#[test]
|
|
fn test_hashset_insert_remove() {
|
|
@@ -12,8 +12,7 @@ fn test_hashset_insert_remove() {
|
|
130, 220, 246, 217, 111, 124, 221, 189, 190, 234, 121, 93, 67, 95, 100, 43,
|
|
];
|
|
|
|
- let mut rng: XorShiftRng = SeedableRng::from_seed(seed);
|
|
- //let mut rng: XorShiftRng = XorShiftRng::new_unseeded();
|
|
+ let rng = &mut SmallRng::from_seed(seed);
|
|
let tx: Vec<Vec<char>> = (0..4096)
|
|
.map(|_| (rng.sample_iter(&Alphanumeric).take(32).collect()))
|
|
.collect();
|
|
--
|
|
2.24.1
|
|
|