Skip to content

Instantly share code, notes, and snippets.

@tenfyzhong
Created November 27, 2018 03:04
Show Gist options
  • Save tenfyzhong/0b0939a88603d72126171e731317bb33 to your computer and use it in GitHub Desktop.
Save tenfyzhong/0b0939a88603d72126171e731317bb33 to your computer and use it in GitHub Desktop.
time33 hash algorithm
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