Closed X-Ryl669 closed 2 years ago
Thank you! I'm not sure where I pulled the original hashing function from, but this does make way more sense. Would you mind updating your pull request and increment ESPFS_VERSION_MAJOR?
Resolved, thank you again.
Currently chosen hash function is colliding. In effect, any char X followed by Y so that Y = X+33 gives the same result as X+1 followed by X. And since a path is very likely to have successive char with a distance of 33 between them, this is going to happen frequently. For example, "2S" gives the same hash as "32"
Replacing:
by
will solve this issue since there is no char that's 257 higher than another.