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

Add XXHash64 to hashing functions #60

Merged
merged 1 commit into from
Feb 21, 2021
Merged

Conversation

cadyn
Copy link
Contributor

@cadyn cadyn commented Feb 8, 2021

XXHash64 is a much faster hashing function than all of the ones currently provided at the cost of fewer bits. At 64 bits, you're still getting collision chances of 1.8e19, which is more than enough for many potential uses. The seed is randomly generated at compile time using const-random.

@Cyberboss Cyberboss merged commit 48ed995 into tgstation:master Feb 21, 2021
@ZeWaka ZeWaka mentioned this pull request Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants