github.com/go-board/x-go@v0.1.2-0.20220610024734-db1323f6cb15/xhash/128.go (about)

     1  package xhash
     2  
     3  import (
     4  	"github.com/spaolacci/murmur3"
     5  )
     6  
     7  // Sum128 run murmur3.Sum128
     8  func Sum128(data []byte) (uint64, uint64) {
     9  	return murmur3.Sum128(data)
    10  }
    11  
    12  // Sum128String run murmur3.Sum128
    13  func Sum128String(str string) (uint64, uint64) {
    14  	return murmur3.Sum128([]byte(str))
    15  }