by zeveb · 9y ago · 0 comments
Performance. Take a look at djb's (non-cryptographic) hash, with a constant multiplier chosen to be implemented with a shift and an add — that's the level of performance a non-cryptographic hash (e.g. for hash tables & similar purposes) needs.
In other words, you risk mapping `n` and `-n` to the same value under some modulus.