MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / FNVHash32B

Function FNVHash32B

crypto/hash/hashfuncs.go:53–57  ·  view source on GitHub ↗

FNVHash32B calculates hash(b) into [0, 2^64] and returns the resulting bytes.

(b []byte)

Source from the content-addressed store, hash-verified

51
52// FNVHash32B calculates hash(b) into [0, 2^64] and returns the resulting bytes.
53func FNVHash32B(b []byte) []byte {
54 hash := fnv.New32()
55 hash.Write(b)
56 return hash.Sum(nil)
57}
58
59// FNVHash32uint return the uint32 value of fnv hash 32 of b.
60func FNVHash32uint(b []byte) uint32 {

Callers 2

TestFNVHash32BFunction · 0.85
FNVHash32uintFunction · 0.85

Calls 1

WriteMethod · 0.65

Tested by 1

TestFNVHash32BFunction · 0.68