Add a mechanism to specify the "type seed", which is the UInt value that we start with to compute the hash function. Currently, we use either hash(:TypeName) or hash(Type), depending on whether typearg=false (the default) or typearg=true.
One suggestion for how it would work:
The user can specify type_seed=e. If typearg=false (the default), then e is used as the type seed. If typearg=true, then e(t) is used as the type seed, where t is the type of the object being hashed.
Add a mechanism to specify the "type seed", which is the
UInt
value that we start with to compute the hash function. Currently, we use eitherhash(:TypeName)
orhash(Type)
, depending on whethertypearg=false
(the default) ortypearg=true
.One suggestion for how it would work:
The user can specify
type_seed=e
. Iftypearg=false
(the default), thene
is used as the type seed. Iftypearg=true
, thene(t)
is used as the type seed, wheret
is the type of the object being hashed.