-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current method for computing the point on the hash ring converts the MD5 digest into a 4-byte integer (and assumes big-endian). The digest is actually a 16-byte value, so we are eliminating much of the value, thus increasing the possibility of hash collisions. This patch does two things: * Removes the endianness assumption * Uses the full value of the digest to create a long integer, which has unlimited precision in Python. Change-Id: I554ec46f506cb8cdfd5878c11a905a3acfe92db0
- Loading branch information
David Shrewsbury
committed
Oct 20, 2014
1 parent
e6ac648
commit e2c1ebc
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters