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

FNV1a 52 bit #1

Open
DRN88 opened this issue Sep 9, 2021 · 1 comment
Open

FNV1a 52 bit #1

DRN88 opened this issue Sep 9, 2021 · 1 comment

Comments

@DRN88
Copy link

DRN88 commented Sep 9, 2021

Hello, great lib thank you.

I was wondering if you could please add 52bit function(s) too.

I am happened to be in a situation where I need to move functionality from javascript to php.
I have FNV1a 52bit used in javascript from this class: https://github.com/tjwebb/fnv-plus/blob/master/index.js
In this class 52bit and 64bit functions are very similar, so maybe it is easy to do for php too (as we have the 64bit one in this repo)

I'm trying to do this myself, if I get it to work I share it here. But I am not that confident I can do this. Could you please have a look?

Thank you

@philippelyp
Copy link
Owner

FNV1a is not specified for 52 bits. See https://datatracker.ietf.org/doc/html/draft-eastlake-fnv-18

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

No branches or pull requests

2 participants