spaolacci / murmur3

Native MurmurHash3 Go implementation
BSD 3-Clause "New" or "Revised" License
947 stars 127 forks source link

Allow to parameterize seed value as in original murmur3 implementation #15

Closed mbyczkowski closed 7 years ago

mbyczkowski commented 7 years ago

When I was implementing this change, I missed that similar work has been done already (#9 and #10), but I figured it's worth sharing.

Obvious drawback is the API breakage of this lib, so maybe the way to go would be to tag the lib and start versioning (e.g. 0.1 for current, and 0.2 for this PR and up)?

spaolacci commented 7 years ago

Thanks for the PR. I had roughly equivalent stahed patch that I uploaded this morning in 4ec5a0f56d4fc178129a8433576bf6f2fe672a9e. The API is extended (not altered) with seed aware constructors and top-level accessors.

It obiously conflicted your patch set, but I'd like to have at through since there's a few well deserved nitpicking, and I also find your seed slot location more ingenious than mine.

I can cherry pick those extra changes manually, it's up to you.

Thanks.

mbyczkowski commented 7 years ago

Extending the API was probably the right move. I have rebased my PR based on your changes and preserved the stuff the I believe you wanted to keep. Lemme know what you think!

spaolacci commented 7 years ago

All merged. Thanks!