We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey, I noticed that current implementation is differs from original C implementation on emojis. This might be a problem for multilingual systems.
Example with the string from Readme:
#include <stdio.h> unsigned long hash(unsigned char *str) { unsigned long hash = 5381; int c; while ((c = *str++)) hash = ((hash << 5) + hash) ^ c; return hash & 0xFFFFFFFF; } int main() { unsigned char myString [] = "🦄🌈"; printf("hash %ld\n", hash(myString)); return 0; } // => hash 1642026147
The text was updated successfully, but these errors were encountered:
This is a limitation in integers in JS. We need to move to BigInt. Example: https://github.com/sindresorhus/fnv1a
BigInt
Sorry, something went wrong.
No branches or pull requests
Hey, I noticed that current implementation is differs from original C implementation on emojis. This might be a problem for multilingual systems.
Example with the string from Readme:
The text was updated successfully, but these errors were encountered: