pub fn error_fingerprint(msg: &str) -> u64
Computes a fingerprint for an error message (for deduplication).