a consistent hash in Go