building the key same as consistent_hashing in GO