top | item 43874138

(no title)

_tom_ | 10 months ago

Off-the-cuff thought:

Could you solve the empty string hashes to zero problem by just adding one when computing hash codes?

discuss

order

Karellen|10 months ago

But then strings with the hash code HASH_MAX would wrap to 0 instead.

layer8|10 months ago

You could, but that would break backwards compatibility.