parent
92272f9c9e
commit
77e7b40224
@ -0,0 +1,25 @@
|
|||||||
|
From c4945f2cde25f388654cbd4614fd1b236a128986 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Josh Stone <cuviper@gmail.com>
|
||||||
|
Date: Mon, 27 Jan 2020 16:24:00 -0800
|
||||||
|
Subject: [PATCH] Upgrade to ahash 0.3.2
|
||||||
|
|
||||||
|
---
|
||||||
|
src/map.rs | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/map.rs b/src/map.rs
|
||||||
|
index 5bb4a9d358b9..54890bc40dbd 100644
|
||||||
|
--- a/src/map.rs
|
||||||
|
+++ b/src/map.rs
|
||||||
|
@@ -10,7 +10,7 @@ use core::ops::Index;
|
||||||
|
|
||||||
|
/// Default hasher for `HashMap`.
|
||||||
|
#[cfg(feature = "ahash")]
|
||||||
|
-pub type DefaultHashBuilder = ahash::ABuildHasher;
|
||||||
|
+pub type DefaultHashBuilder = ahash::RandomState;
|
||||||
|
|
||||||
|
/// Dummy default hasher for `HashMap`.
|
||||||
|
#[cfg(not(feature = "ahash"))]
|
||||||
|
--
|
||||||
|
2.24.1
|
||||||
|
|
@ -0,0 +1,35 @@
|
|||||||
|
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
|
||||||
|
|
Loading…
Reference in new issue