[issue20446] ipaddress: hash similarities for ipv4 and ipv6

Josh Rosenberg report at bugs.python.org
Sat Jun 21 05:24:20 CEST 2014


Josh Rosenberg added the comment:

@Tim: Sorry, forgot the internals there (I read all that a while ago, but it's not easy to keep all the details in mind). Apparently there are four reasons this isn't actually a problem. :-)

I agree it's kind of silly that it's converted to a hex string before hashing. Maybe the person writing the code also forgot about sequential hashes being harmless and thought using string hashes (that vary more erratically in modern SIP hash Python) over int hashes would reduce collisions?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20446>
_______________________________________


More information about the Python-bugs-list mailing list