def gen_key(self, key):
        b_key = self._hash_digest(key)
        return self._hash_val(b_key, lambda x: x)
Given a string key it returns a long value,
dataset/ETHPy150Open chineking/cola/cola/core/mq/hash_ring.py/HashRing.gen_key