[issue34751] Hash collisions for tuples

Jeroen Demeyer report at bugs.python.org
Wed Sep 26 17:06:05 EDT 2018


Jeroen Demeyer <J.Demeyer at UGent.be> added the comment:

> The two-liner above with the xor in the second line is exactly Bernstein 33A, followed by a permutation of 33A's _output_ space.

Not output space, but internal state (I assume that you do that operation inside the loop). It's replacing DJBX33A by a different algorithm which is not DJBX33A. It may or may not work, that's not my point. It's just that I would avoid changing the structure of the algorithm if there is no reason to.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34751>
_______________________________________


More information about the Python-bugs-list mailing list