Skip to content
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

Change GenerateHash to use same value with internal hash implementation of current Obj-C's NSString #93

Closed
grauwoelfchen opened this issue Jun 18, 2018 · 1 comment
Assignees
Milestone

Comments

@grauwoelfchen
Copy link
Contributor

Check CFString's hash calculation is valid as value of current [NSString hash] on macOS, and then try to make an implementation in C# in the app (embed) same with it.

@grauwoelfchen grauwoelfchen added this to the Prescription milestone Jun 18, 2018
@grauwoelfchen grauwoelfchen self-assigned this Jun 18, 2018
@grauwoelfchen
Copy link
Contributor Author

Current (checked on Swift 3.0.1), The implementation of [NSString hash] (CFString hash) is probably this file:
https://opensource.apple.com/source/CF/CF-1151.16/CFString.c.auto.html

It seems that HashEverythingLimit is 96 (not 24).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant