def _generateX(random, bits):
    while True:
        x = _getRandomNumber(random, bits)
        if 2 <= x <= (2 ** bits) - 2:
            return x
Generate a new value for the private key x.
dataset/ETHPy150Open twisted/twisted/twisted/conch/ssh/transport.py/_generateX