Skip to content
Snippets Groups Projects
Unverified Commit dc8ce8ea authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

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
(cherry picked from commit b30ee26e)

Co-authored-by: default avatarRavi Teja P <rvteja92@gmail.com>
parent 7731139b
Branches
Tags v3.9.8
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment