Skip to main contentModule hash
Source - djb2_hash
- DJB2 hash function for consistent shard assignment.
Produces a deterministic hash for any byte slice.
- djb2_hash64
- Produces a deterministic 64-bit hash for any byte slice.
- djb2_hash64_with_seed
- Produces a deterministic 64-bit hash seeded with the provided value.
- hash64
- High-quality 64-bit hash function optimized for uniform distribution.
- sha256_hex
- Compute a deterministic hex-encoded hash of the given bytes.
- shard_for_entity
- Compute the shard index for an entity ID within a group.