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

WIP: integrate test cases from the hashsplit org test suite. #3

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Aug 19, 2021

This patch:

  • Integrates the test cases from the common test suite I started way back when
  • Sets the correct value of G for cp32

It doesn't work, and this should not be merged as-is. But, either we should fix it, or fix the spec, or at least not claim within the README that this is an implementation of what's in the spec.

I suspect the buzhash32 from the library you're using isn't exactly what we specified as cp32. The easiest path may be to just implement it directly.

Note also that the test configs have a maxSize field, which doesn't seem to have an analogue in this library.

...rather than picking whatever the stdlib's rng gives us.

This doesn't actually fix the tests; most likely the buzhash32
implementation isn't exactly cp32, which is unsurprising.
@zenhack zenhack marked this pull request as draft August 19, 2021 02:46
@bobg
Copy link
Owner

bobg commented Aug 29, 2024

The easiest path may be to just implement it directly.

This now exists at #5 ! I'd be very grateful if you'd take a look. Any chance of getting some test vectors for the cp32 algorithm?

Please note that since you originally wrote this pull request (for which, a very belated thank you), I have dramatically redesigned the API around Go's new iterator feature.

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