Re: [dev] The mysterious 31

From: Wolf Tivy <wtivy1_AT_my.bcit.ca>
Date: Tue, 03 Aug 2010 21:23:49 -0700

> Let me rephrase that, given the nature of this list. There's not
> much science to simple string hash functions. Cryptographic hash
> functions are another matter entirely. I'll also add that 31
> happens to be a prime number.

The first thing that struck me was that 31 in binary is all ones,
as opposed to 32 that would be totally useless because it is just a
shift (no scrambling). Of course mathematically, number representations
should be irrelevant.
Received on Wed Aug 04 2010 - 06:23:49 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 04 2010 - 06:36:01 CEST