All Projects → vcaesar → murmur

vcaesar / murmur

Licence: Apache-2.0 License
Go Murmur3 hash implementation

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to murmur

murmur
Murmur server (Mumble) Docker container - https://mumble.info
Stars: ✭ 31 (+29.17%)
Mutual labels:  murmur
guildbit
🔉 Mumble Hosting Platform
Stars: ✭ 50 (+108.33%)
Mutual labels:  murmur
matrix-appservice-mumble
Matrix <--> Murmur Bridge
Stars: ✭ 27 (+12.5%)
Mutual labels:  murmur

murmur

Build Status CircleCI Status codecov Build Status Go Report Card GoDoc Release Join the chat at https://gitter.im/vcaesar/ego

Go Murmur3 hash implementation

Installing

go get -u github.com/vcaesar/murmur

Use

package main

import (
	"log"

	"github.com/vcaesar/murmur"
)

func main() {
	var str = "github.com/vcaesar/murmur"

	sum32 := murmur.Sum32(str)
	log.Println("hash32: ", sum32)

	sum32 = murmur.Sum32(str, 0)
	log.Println("hash32: ", hash32)

	hash32 := murmur.Murmur3([]byte(str))
	log.Println("hash32...", hash32)

	hash32 = murmur.Murmur3([]byte(str), 1)
	log.Println("hash32...", hash32)
}

Based on MurmurHash, thanks for murmur3.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].