ogxd / gxhash

The fastest hashing algorithm 📈
https://docs.rs/gxhash
MIT License
700 stars 23 forks source link

Add `finish_u128` to `hasher.rs` #8

Closed Dherse closed 8 months ago

Dherse commented 8 months ago

This adds an additional method on Hasher allow the user to get a 128-bit key as an output. This is useful for applications that rely on a large key (and hopefully low collisions) for distinguishing between object. In my case, I need this feature to experiment about the possibility of using GxHash to replace SipHasher in another project I am a contributor of.

ogxd commented 8 months ago

Good idea 👍

Don't forget to use RUSTFLAGS='-C target-cpu=native' when building your project! (hopefully a requirement that will disappear with Rust's portable SIMD project 🙏 )

ogxd commented 8 months ago

Available in version 2.1.1, which is published :) https://docs.rs/gxhash/latest/gxhash/struct.GxHasher.html