def _key_gen(self, encoded_bytes):
        return encoded_bytes[:random.choice([24, 32])]
Parse an ismaster response from the server.
dataset/ETHPy150Open openstack/openstack-ansible/scripts/pw-token-gen.py/CredentialGenerator._key_gen--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/ismaster.py/IsMaster.__init__