A hash should distribute its domain across its range as evenly as possible. 1:1 is ideal. When input and output are ints, 1:1 is trivial to accomplish. Ergo, I don't see how its hash properties can get better, and, can't get any faster than this. I don't think there's any good reason for that commented-out code.
On Mon, Jan 25, 2010 at 4:00 PM, Benson Margulies <bimargul...@gmail.com> wrote: > I figured the commented-out code came from Somewhere for Some Reason. > > On Mon, Jan 25, 2010 at 10:46 AM, Sean Owen <sro...@gmail.com> wrote: >> Dumb question, what would be better?