Hacker News new | ask | show | jobs
by halayli 2219 days ago
wyhash is very impressive for those interested. Not sure why it doesn't get a lot of attention.

https://github.com/wangyi-fudan/wyhash

1 comments

It's odd to have the documentation in a .docx file in the repo. The code itself is not very readable. The core of it is something like (simplified):

    function mix(uint64 a, uint64 b) {
        a ^= secret
        b ^= seed
        hi, lo = mul128(a, b)
        seed = hi ^ lo
    }
It's elegantly simple, but depends critically on 'secret' not appearing in the data.