Skip to main content

RandomState

Type Alias RandomState 

Source
pub type RandomState = RandomState<AVALANCHE, SPONGE, COMPACT, PROTECTED>;
Expand description

A rapidhash equivalent to [std::hash::RandomState] that uses a random seed and secrets for minimal DoS resistance.

This initializes a crate::quality::RapidHasher with the following settings:

  • AVALANCHE is disabled.
  • SPONGE is enabled.
  • COMPACT is disabled.
  • PROTECTED is disabled.

Use crate::quality::RandomState for a higher quality but slower hash output where desirable.

Aliased Typeยง

pub struct RandomState { /* private fields */ }