We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f0be54 commit 85d5025Copy full SHA for 85d5025
1 file changed
xxhash.go
@@ -1,5 +1,7 @@
1
package xxhash
2
3
+import "hash"
4
+
5
const (
6
prime32x1 uint32 = 2654435761
7
prime32x2 uint32 = 2246822519
@@ -22,6 +24,9 @@ const (
22
24
zero64x4 = 0x61c8864e7a143579
23
25
)
26
27
+func NewHash32() hash.Hash { return New32() }
28
+func NewHash64() hash.Hash { return New64() }
29
30
// Checksum32 returns the checksum of the input data with the seed set to 0.
31
func Checksum32(in []byte) uint32 {
32
return Checksum32S(in, 0)
0 commit comments