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 RapidHasher with the following settings:

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

Use crate::fast::RandomState for a lower quality but faster hash output where desirable.

Aliased Typeยง

pub struct RandomState { /* private fields */ }