|
|
|
|
|
by albertzeyer
5348 days ago
|
|
I'm curios, what is (under normal circumstances) supposed to go into a string hash function? The biggest problem I see with this hash function is that it will produce very many collisions (because most common strings will probably produce only small numbers). I have seen other very simple string hash functions which just take the 4 first bytes (or 4 last or some sort of other pattern) of the string and use them (interpreted as 32bit integer) as the hash. |
|