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.
type Hasher2 ¶
type Hasher2[K any] struct { // contains filtered or unexported fields }
Hasher2 hashes values of type K. Uses runtime AES-based hashing.
func NewHasher2 ¶
NewHasher2 creates a new Hasher2[K] with a random seed.
func NewSeed2 ¶
func NewSeed2[K comparable](h Hasher2[K]) Hasher2[K]
NewSeed2 returns a copy of |h| with a new hash seed.
Click to show internal directories.
Click to hide internal directories.