Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
type Hasher[K comparable] struct { // contains filtered or unexported fields }
Hasher hashes values of type K. Uses runtime AES-based hashing.
func NewHasher ¶
func NewHasher[K comparable]() Hasher[K]
NewHasher creates a new Hasher[K] with a random seed.
func NewSeed ¶
func NewSeed[K comparable](h Hasher[K]) Hasher[K]
NewSeed returns a copy of |h| with a new hash seed.
Click to show internal directories.
Click to hide internal directories.