[issue14532] multiprocessing module performs a time-dependent hmac comparison
sbt
report at bugs.python.org
Thu Apr 12 16:20:07 CEST 2012
sbt <shibturn at gmail.com> added the comment:
Why not just
def time_independent_equals(a, b):
return len(a) == len(b) and sum(x != y for x, y in zip(a, b)) == 0
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14532>
_______________________________________
More information about the Python-bugs-list
mailing list