Documentation ¶
Overview ¶
The file is copied from blainsmith.com/go/seahash@v1.2.1.
Package seahash implements SeaHash, a non-cryptographic hash function created by http://ticki.github.io.
Index ¶
Examples ¶
Constants ¶
View Source
const BlockSize = 8
BlockSize of SeaHash in bytes.
View Source
const Size = 8
Size of a SeaHash checksum in bytes.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hasher ¶
type Hasher struct {
// contains filtered or unexported fields
}
Hasher is an instance to calculate checksum.
func New ¶
func New() *Hasher
New creates a new SeaHash hash.Hash64
Example ¶
// hash some bytes h := New() h.Write([]byte("to be or not to be")) hash := h.Sum64() fmt.Printf("%x", hash)
Output: 1b993a826f4ae575
Click to show internal directories.
Click to hide internal directories.