Subject: | Digest::FNV calculates a wrong hash with \0 in the data |
When using binary data, it happens a lot that \0 bytes are in the to be hashed data. This breaks the loop in e.g. fnvlib/hash_32.c as the loop checks the *s:
while(*s){
...
}
This makes for more hash collisions when trying to make a MPH.