5
vendor/github.com/OneOfOne/xxhash/xxhash.go
generated
vendored
5
vendor/github.com/OneOfOne/xxhash/xxhash.go
generated
vendored
@@ -1,5 +1,7 @@
|
||||
package xxhash
|
||||
|
||||
import "hash"
|
||||
|
||||
const (
|
||||
prime32x1 uint32 = 2654435761
|
||||
prime32x2 uint32 = 2246822519
|
||||
@@ -22,6 +24,9 @@ const (
|
||||
zero64x4 = 0x61c8864e7a143579
|
||||
)
|
||||
|
||||
func NewHash32() hash.Hash { return New32() }
|
||||
func NewHash64() hash.Hash { return New64() }
|
||||
|
||||
// Checksum32 returns the checksum of the input data with the seed set to 0.
|
||||
func Checksum32(in []byte) uint32 {
|
||||
return Checksum32S(in, 0)
|
||||
|
||||
Reference in New Issue
Block a user