FNVHash32B calculates hash(b) into [0, 2^64] and returns the resulting bytes.
(b []byte)
| 51 | |
| 52 | // FNVHash32B calculates hash(b) into [0, 2^64] and returns the resulting bytes. |
| 53 | func 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. |
| 60 | func FNVHash32uint(b []byte) uint32 { |