def gen_password_entropy(entropy, choices=ALPHANUMERIC):
    """
    Generates a password of the desired entropy, calculating the length as
    required.
    """
    required_length = int(math.ceil(math.log(len(choices), 2) / entropy))
    return gen_password(choices=choices, length=required_length)
dataset/ETHPy150Open gavinwahl/sdb/sdb/passwords.py/gen_password_entropy/swapped operands of `/`