]> mj.ucw.cz Git - libucw.git/commit
Oops, the hash function for fingerprints was terribly biased. There should
authorMartin Mares <mj@ucw.cz>
Wed, 11 Jun 2003 13:03:30 +0000 (13:03 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 11 Jun 2003 13:03:30 +0000 (13:03 +0000)
commit262c15250485395b49e6c99d972906e1b11cfb74
treeade847f7ec62ab3fb553449854f746dce279320b
parent61e90cb3e0e1951e6e2d75f90c34adf5b3beb38d
Oops, the hash function for fingerprints was terribly biased. There should
be XOR, not OR. Also, the shifts are meaningless, because the fingerprint
hash is believed to be very well distributed.

Beware, this means that the current mainline is incompatible with string
indices generated by v2.4!  For now, I'm not increasing the index version,
because word matching still works with old indices and I want to profile it.
lib/index.h