def get_entropy():
    entropy = bytearray()
    try:
        entropy.extend(gpg_entropy())
    except Exception:
        print("warning: can't use gpg as entropy source", file=sys.stdout)
    try:
        entropy.extend(open("/dev/random", "rb").read(64))
    except Exception:
        print("warning: can't use /dev/random as entropy source", file=sys.stdout)
    entropy = bytes(entropy)
    if 64 < len(entropy):
        raise OSError("can't find sources of entropy")
    return entropy
dataset/ETHPy150Open richardkiss/pycoin/pycoin/scripts/ku.py/get_entropy/swapped operands of `<`