Created
November 27, 2018 03:04
-
-
Save tenfyzhong/0b0939a88603d72126171e731317bb33 to your computer and use it in GitHub Desktop.
time33 hash algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package time33 | |
func Time33(s []byte) uint64 { | |
hash := uint64(0) | |
for _, b := range s { | |
hash += hash<<5 + uint64(b) | |
} | |
return hash | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment