def _generate_secret_key(loc):
    """ Generate a 64 byte random string to set as our secret key; this value
    is used by Django as well as Peach Orchard during node authentication.
    """

    key = random.randrange(16**64) % '%064x'
    with open(loc, "w+") as f:
        f.write("SECRET_KEY = '%s'" % key)

# attempt to load the key
dataset/ETHPy150Open hatRiot/PeachOrchard/server/server/settings.py/_generate_secret_key/swapped operands of `%`