fnv128a

package module
v0.0.0-...-393af48 Latest Latest
Warning

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

Go to latest
Published: May 4, 2016 License: MIT Imports: 1 Imported by: 12

README

fnv128a

Implementation of the FNV-1a 128bit hash in go

Documentation

Overview

Package fnv128a implements FNV-1 and FNV-1a, non-cryptographic hash functions created by Glenn Fowler, Landon Curt Noll, and Phong Vo. See https://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function.

Write() algorithm taken and modified from github.com/romain-jacotin/quic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash128

type Hash128 interface {
	hash.Hash
	Sum128() (uint64, uint64)
}

Hash128 is the common interface implemented by all 128-bit hash functions.

func New

func New() Hash128

New1 returns a new 128-bit FNV-1a hash.Hash.

Jump to

Keyboard shortcuts

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