William Dillon ba60fcb929 updated mishmash - engine returns accumulator for use with Mishmash which takes it as an optional seed. Mishmash can be seeded however desired through this mechanism as well. Added simple function to decode accumulator for ease of use when we're going to be double hashing | 3 年之前 | |
---|---|---|
LICENSE.TXT | 3 年之前 | |
README.md | 3 年之前 | |
mishmash.go | 3 年之前 | |
mishmash_test.go | 3 年之前 |
this is a non-cryptographic hash optimized for short strings.
adapted from CodeDweller/mishmash.h/cpp https://code.microneil.com/madscientist/CodeDweller/src/branch/master
to use: use the Mishmash function. If you’re in need of a second hash use Engine instead, which will return the accumulator. You can use the MishmashAccumulator function to mishmash your accumulator, and could also feed that accumulator back into Mishmash to double hash.