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:40:50 +0000 (13:40 -0800)
commitb2a52eedaa406bacfa53d2b2a3d4236e46042bcd
treef83085b1efd7bf817e51a160a26ac56ca9e4b668
parent432fca235c375c1d56bd6d3049b0b24ce2cb2958
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