-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hash collision in Utils.hashStr #82
Comments
After some investigations, I found that the problems resides in the poor precision of the hash. |
Any chance you can provide a PR on Lance on the develop branch ? |
I'm leaving on holidays so no promise, but I'll try when I have some time. |
I'm seeing this problem as well. Collision on |
A simple workaround is to change the name of the class. So renaming |
Hi,
I just encountered a hash collision when registering a new class.
The problem is line 52 of Serializer.js with Utils.hashStr.
It returns the same hash (37) for two different strings: "Tile" & "NetworkedEventCollection"
Here is the test code :
For now, hopefully, we can pass a classId to the registerClass method.
Shouldn't be hard to fix :)
Thanks
The text was updated successfully, but these errors were encountered: