Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 29, 2020

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 b30ee26)

Co-authored-by: Ravi Teja P [email protected]

https://bugs.python.org/issue41004

Automerge-Triggered-By: @ericvsmith

pythonGH-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 b30ee26)

Co-authored-by: Ravi Teja P <[email protected]>
@miss-islington
Copy link
Contributor Author

@rvteja92 and @ericvsmith: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 9a646aa into python:3.9 Jun 29, 2020
@miss-islington miss-islington deleted the backport-b30ee26-3.9 branch June 29, 2020 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants