def constant_time_compare(val1, val2):
    if len(val1) != len(val2):
        return False
    result = 0
    for x, y in zip(val1, val2):
        result |= ord(x) ^ ord(y)
    return result == 0
pretty simple
dataset/ETHPy150Open gratipay/gratipay.com/gratipay/security/crypto.py/constant_time_compare--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/casehandlers/test/test_datadump.py/Complex_Comp.execute