Specify hash function used by `hash()`?


#1

I’m new to the idea of hash functions, so please forgive me if this is a naive question, but I’m wondering if there’s a way to specify the hash function and seed used with hash(). I made a julia implementation of a tool called “Mash” that uses hashes to compare genome signatures.

In order to make this interoperable with the other Mash implementations (eg so signatures generated from my implementation matches the signatures from the others), I gather I need to use the same hash function, but I’m not sure quite how to do that.

I see that:

The optional second argument h is a hash code to be mixed with the result

but I don’t think that this is what I’m looking for (is it?).


#2

Never mind - looks like what I need to do in this case is use Murmur3.jl instead.