Skip to main content

Module quality

Module quality 

Source
Expand description

In-memory hashing: RapidHasher with a focus on hash quality.

Designed to produce minimal hash collisions.

This is a specific instantiation of the crate::inner module with the following settings:

  • AVALANCHE is enabled.
  • SPONGE is enabled.
  • COMPACT is disabled, unless building for WASM targets.
  • PROTECTED is disabled.

Type Aliasesยง

GlobalState
A [std::hash::BuildHasher] that uses a global seed and secrets, randomized only once on startup.
RandomState
A rapidhash equivalent to [std::hash::RandomState] that uses a random seed and secrets for minimal DoS resistance.
RapidHasher
A [std::hash::Hasher] inspired by crate::v3::rapidhash_v3 with a focus on output hash quality.
SeedableState
A [std::hash::BuildHasher] that uses user-provided seed and secrets.