Documentation
¶
Index ¶
- func GetSeeds() (a []byte, h []uintptr)
- func SetSeeds(a []byte, h []uintptr) error
- type H128
- func AnyH128(i any) H128
- func BoolH128(b bool) H128
- func Float32H128(f float32) H128
- func Float64H128(f float64) H128
- func Int64H128(x int64) H128
- func IntH128(x int) H128
- func StringH128(s string) H128
- func Uint8H128(x uint8) H128
- func Uint16H128(x uint16) H128
- func Uint32H128(x uint32) H128
- func Uint64H128(x uint64) H128
- func UintH128(x uint) H128
- func UintptrH128(x uintptr) H128
- type Hashable
- type Seed
- func Any(i any, seed Seed) Seed
- func Bool(b bool, seed Seed) Seed
- func Complex64(c complex64, seed Seed) Seed
- func Complex128(c complex128, seed Seed) Seed
- func Float32(f float32, seed Seed) Seed
- func Float64(f float64, seed Seed) Seed
- func Int(x int, seed Seed) Seed
- func Int8(x int8, seed Seed) Seed
- func Int16(x int16, seed Seed) Seed
- func Int32(x int32, seed Seed) Seed
- func Int64(x int64, seed Seed) Seed
- func Interface(a any, seed Seed) Seeddeprecated
- func String(s string, seed Seed) Seed
- func Uint(x uint, seed Seed) Seed
- func Uint8(x uint8, seed Seed) Seed
- func Uint16(x uint16, seed Seed) Seed
- func Uint32(x uint32, seed Seed) Seed
- func Uint64(x uint64, seed Seed) Seed
- func Uintptr(x, seed Seed) Seed
- func UnsafePointer(p unsafe.Pointer, seed Seed) Seed
- func Value(v reflect.Value, seed Seed) Seed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type H128 ¶
type H128 struct{ Lo, Hi uintptr }
H128 holds a 128-bit hash computed in a single pass on AES-capable hardware.
func AnyH128 ¶
AnyH128 returns an H128 hash for i, dispatching to the appropriate H128 function by type. For types implementing Hashable, falls back to two seeded calls.
func Float32H128 ¶
Float32H128 returns an H128 hash for f (handles NaN and ±0).
func Float64H128 ¶
Float64H128 returns an H128 hash for f (handles NaN and ±0).
Click to show internal directories.
Click to hide internal directories.