hashlib

package
v0.0.0-...-233725d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FNV1av32

func FNV1av32(key string) uint32

hash = offset_basis for each octet_of_data to be hashed

hash = hash xor octet_of_data
hash = hash * FNV_prime

return hash

func FNV1av64

func FNV1av64(key string) uint64

hash = offset_basis for each octet_of_data to be hashed

hash = hash xor octet_of_data
hash = hash * FNV_prime

return hash

func FNV1v32

func FNV1v32(key string) uint32

hash = offset_basis for each octet_of_data to be hashed

hash = hash * FNV_prime
hash = hash xor octet_of_data

return hash

func FNV1v64

func FNV1v64(key string) uint64

hash = offset_basis for each octet_of_data to be hashed

hash = hash * FNV_prime
hash = hash xor octet_of_data

return hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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