diff options
author | David Shrewsbury <shrewsbury.dave@gmail.com> | 2014-10-16 15:34:32 -0400 |
---|---|---|
committer | David Shrewsbury <shrewsbury.dave@gmail.com> | 2014-10-20 11:53:33 -0400 |
commit | e2c1ebcb7f8dc4d76b3e413d060edde96b52e8b3 (patch) | |
tree | 1d90686cb875bc0ca2644deaf1d17ed093ad7390 /.gitreview | |
parent | e6ac648e41f6316b81bdc3d7aec8fd86f7857efa (diff) | |
download | ironic-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