// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2024 Praxis Contributors
//! Shared hash functions used by multiple load-balancing strategies.
/// FNV-1a 64-bit hash (fast, deterministic).
///
/// **Security note:** FNV-1a is unkeyed; an attacker who knows
/// the backend addresses can brute-force header values to target
/// a specific backend. The same risk applies to xxHash and
/// `MurmurHash3` in the ring-hash strategy. For adversarial
/// environments, consider a keyed hash (e.g. `SipHash` with a
/// random seed) as an alternative.
pub