Closed tomerk closed 8 years ago
This looks good to me - if you could clean up the comments and add a direct reference to the Murmur Hash 3 algorithm. Is there a reason we're reimplementing rather than linking to the one in the scala stdlib?
http://www.scala-lang.org/api/2.10.4/#scala.util.hashing.MurmurHash3$
Yeah the code (and constants) come directly from the scala stdlib, but the scala stdlib marked these rolling hash methods as private[hashing]
. I could make a util in the hashing namespace that exposes these methods to us, which may be preferable to the code & constants copying I've done here.
Copy/pasting is fine, then, I guess. Let's just leave a reference to where it came from in the code?
Okay @etrain I added a reference to the scala stdlib class.
LGTM, merging this!
issue #184