hash: Correct implementation of mhash_finish().
authorBen Pfaff <blp@nicira.com>
Fri, 14 Dec 2012 21:43:54 +0000 (13:43 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 22 Jan 2013 21:50:38 +0000 (13:50 -0800)
commit5f60b7aabe8449dc08103575b076c8c8168464d3
tree4a9446bc578d01eae2e70459b1f027e9fe6fa079
parent323e2b8ef07fa8672be00e53b9f19ecd754cc9b7
hash: Correct implementation of mhash_finish().

With rotates instead of shifts, the upper and lower 16 bits of the returned
hash are always the same.

I noticed this while working on replacing Jenkins hash by murmurhash,
because some of the database unit tests started failing, e.g. "row
hashing (scalars)".

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/hash.h