hashing

package
v0.0.0-...-326083f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FNV1AOffest  uint64 = 14695981039346656037
	FNV1APrime64 uint64 = 1099511628211
)

Variables

This section is empty.

Functions

func FNV1A

func FNV1A(input string) uint64

FNV1A returns a basic FNV 1a hash (64-bit) of given input string.

func Murmur3_32

func Murmur3_32(input string, seed uint64) uint64

MurMurHash32 returns a basic hash (32-bit). Pass seed or 0 for default value.

func XXHash64

func XXHash64(input string, seed uint64) uint64

XXHash returns a hash using the XXH64. Pass seed or 0 for default value (golden ratio).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL