package hast_test import ( "fmt" "testing" "github.com/spaolacci/murmur3" ) func TestXmurmur(t *testing.T) { s := "/m3event/devops/alerts_status10.1.0.1ICMP1311223322331" // 2419174761762018589 // s := "/m3event/devops/alerts_status10.1.0.1" // => 2717582454611764458 // s := "/m3event/devops/alerts_status10.1.0.1ICMP13" // => 11724275543686760652 // s := "/m3event/devops/alerts_status10.1.0.1ICMP131122332233" // => 16590484953594540623 // s := "/m3event/devops/alerts_status10.1.0.1ICMP1311223322331" // => 14123040702697061094 h := murmur3.New64() h.Write([]byte(s)) fmt.Printf("murmur3.Sum64 %s => %d\n", s, h.Sum64()) }