~ubuntu-push-hackers/ubuntu-push/murmur3

Viewing all changes in revision 17.

  • Committer: Sébastien Paolacci
  • Date: 2017-08-06 12:13:38 UTC
  • Revision ID: git-v1:4ec5a0f56d4fc178129a8433576bf6f2fe672a9e
Add (long overdue) support for seed parameters.

Since compatibility is key here, use very the same parametrization as
in reference C++ implementation (i.e always propose a single uint32
even for `MurmurHash3_x64_128`).

API is kept backward compatible, all constructors and top-level
accessors gain a `WithSeed(uint32)`.

Tests have been extended using the SMHasher original implementation
and have been enhanced with reset sequences.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: