tab-hash - Tabulation Hashing for Rust
This crate offers rust implementations of simple and twisted tabulation hashing for 32-bit integer values.
Instatiating Tab32Simple or Tab32Twisted will initialize a table and
create a random hash function from the respective hash family.
The hash value of a 32-bit integer can be computed by calling its hash method.
Example:
use Tab32Simple;
To reprocude hashes, save the table used by the hash function and save it.
The function can be recreated using the with_table constructor.
use Tab32Twisted;
Note:
These hash functions do not implement the std::hash::Hasher trait,
since they do not work on arbitrary length byte streams.
Literature:
This implementation is based on the articles of Mihai Patrascu and Mikkel Thorup: