Nacre/vendor/epaint/src/util/mod.rs
astar76 8b2b2a5655 S003: first launch on Xvfb, smoke harness, epaint glyph panic and quit segfault fixed
- tools/smoke.sh + tests/smoke/{launch,https,restore}.txt: hidden Xvfb run with a throwaway home
- vendor/epaint: render glyphs single-threaded (Servo enables vello_cpu/multithreading), D-006
- App::quit drops every Servo handle before the GL contexts, so Servo shuts down cleanly
- D-005: smoke runs use Xvfb

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 18:01:15 -06:00

12 lines
381 B
Rust

/// Hash the given value with a predictable hasher.
#[inline]
pub fn hash(value: impl core::hash::Hash) -> u64 {
ahash::RandomState::with_seeds(1, 2, 3, 4).hash_one(value)
}
/// Hash the given value with the given hasher.
#[inline]
pub fn hash_with(value: impl core::hash::Hash, mut hasher: impl core::hash::Hasher) -> u64 {
value.hash(&mut hasher);
hasher.finish()
}