token-bucket 10.11.0

Zero-dependency, lock-free atomic GCRA, Fixed-Window, Token-Bucket, and 64-way sharded bounded keyed rate-limiting engine.
Documentation
/// Byte width of a 64-bit word chunk during fast hashing.
pub(crate) const WORD_BYTES: usize = 8;

/// Primary odd golden-ratio mixing multiplier.
pub(crate) const MIX_PRIME_A: u64 = 0x9E37_79B9_7F4A_7C15;

/// Secondary SplitMix64 avalanche multiplier.
pub(crate) const MIX_PRIME_B: u64 = 0xBF58_476D_1CE4_E5B9;

/// Tertiary SplitMix64 avalanche multiplier.
pub(crate) const MIX_PRIME_C: u64 = 0x94D0_49BB_1331_11EB;

/// Rotation count applied when folding words into the hash accumulator.
pub(crate) const MIX_ROTATE_BITS: u32 = 27;

/// First right-shift in the SplitMix64 finalizer.
pub(crate) const AVALANCHE_SHIFT_1: u32 = 30;

/// Second right-shift in the SplitMix64 finalizer.
pub(crate) const AVALANCHE_SHIFT_2: u32 = 27;

/// Third right-shift in the SplitMix64 finalizer.
pub(crate) const AVALANCHE_SHIFT_3: u32 = 31;