Crates.io | sfhash |
lib.rs | sfhash |
version | 0.1.1 |
source | src |
created_at | 2021-10-11 10:53:46.094718 |
updated_at | 2021-10-11 10:55:40.914693 |
description | The `Hsieh Hash` or `SuperFastHash` function |
homepage | |
repository | https://github.com/xiphoseer/sfhash |
max_upload_size | |
id | 463516 |
size | 31,303 |
This crate contains the SuperFastHash
(aka Hsieh Hash
) function
presented at http://www.azillionmonkeys.com/qed/hash.html
use sfhash::digest;
let hash = digest("Hello World!".as_bytes());
assert_eq!(hash, 1774740540);
The hash value is initialized with the lenght of the input, so the algorithm cannot be used incrementally.