Jenkins
Golang Jenkins hash
Install
go get -u github.com/mtchavez/jenkins
Usage
Jenkins follows the Hash32 interface from the Go standard library
// Create a new hash
jenkhash := New()
// Write a string of bytes to hash
key := []byte("my-random-key")
length, err := jenkhash(key)
// Get uint32 sum of hash
sum := jenkhash.Sum32()
// Sum hash with byte string
sumbytes := jenkhash.Sum(key)
Testing
Uses Ginkgo for testing.
Run via make test
which will run go test -cover
Documentation
Docs on godoc
License
Written by Chavez
Released under the MIT License: http://www.opensource.org/licenses/mit-license.php