hash

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash128 added in v1.0.0

func Hash128(data []byte, seed uint32) (uint64, uint64)

Hash128 calculates a 128 bits hash for the given data. It returns different results when running on big-endian and little-endian machines.

The code is intended to be as close as possible to the reference implementation https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp.

func Sum64

func Sum64(b []byte) uint64

func Sum64String

func Sum64String(s string) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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