summaryrefslogtreecommitdiff
path: root/.gitreview
diff options
context:
space:
mode:
authorDavid Shrewsbury <shrewsbury.dave@gmail.com>2014-10-16 15:34:32 -0400
committerDavid Shrewsbury <shrewsbury.dave@gmail.com>2014-10-20 11:53:33 -0400
commite2c1ebcb7f8dc4d76b3e413d060edde96b52e8b3 (patch)
tree1d90686cb875bc0ca2644deaf1d17ed093ad7390 /.gitreview
parente6ac648e41f6316b81bdc3d7aec8fd86f7857efa (diff)
downloadironic-e2c1ebcb7f8dc4d76b3e413d060edde96b52e8b3.tar.gz
Improve hash ring value conversion
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
Diffstat (limited to '.gitreview')
0 files changed, 0 insertions, 0 deletions