Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/stdx/src/rand.rs')
-rw-r--r--crates/stdx/src/rand.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/stdx/src/rand.rs b/crates/stdx/src/rand.rs
index 64aa57eae0..115a073dab 100644
--- a/crates/stdx/src/rand.rs
+++ b/crates/stdx/src/rand.rs
@@ -14,8 +14,7 @@ pub fn shuffle<T>(slice: &mut [T], mut rand_index: impl FnMut(usize) -> usize) {
}
pub fn seed() -> u64 {
- use std::collections::hash_map::RandomState;
use std::hash::{BuildHasher, Hasher};
-
- RandomState::new().build_hasher().finish()
+ #[allow(clippy::disallowed_types)]
+ std::collections::hash_map::RandomState::new().build_hasher().finish()
}