SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)

The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
R
Ravi Teja P committed
b30ee26e366bf509b7538d79bfec6c6d38d53f28
Parent: a3ad95d
Committed by GitHub <noreply@github.com> on 6/29/2020, 5:39:29 PM