[TESTS] added a new hash algorithm
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Sep 2007 19:13:47 +0000 (21:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Sep 2007 19:13:47 +0000 (21:13 +0200)
commitab28b8b9fd5e402c80aef0874ca35895dde858c5
treea6dbf94f03ed380558599fc1e7bc89cd13832272
parent4eac209555350124710797dfeb3d228a9e68edce
[TESTS] added a new hash algorithm

added "wt_hash" which shows only 60 collisions in 575k values, which
sets it between hashword() and djbx33(). It's also between both in
terms of performance, but the most important part is that its variable
length rotation mechanism should make it really harder to predict and
attack than the other ones.
tests/test_hashes.c