mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Use ahash for Id and other things that need hashing
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/// Hash the given value with a predictable hasher.
|
||||
#[inline]
|
||||
pub fn hash(value: impl std::hash::Hash) -> u64 {
|
||||
hash_with(value, std::collections::hash_map::DefaultHasher::default())
|
||||
hash_with(value, ahash::AHasher::new_with_keys(123, 456))
|
||||
}
|
||||
|
||||
/// Hash the given value with the given hasher.
|
||||
|
||||
Reference in New Issue
Block a user