sfhash

Crates.iosfhash
lib.rssfhash
version0.1.1
sourcesrc
created_at2021-10-11 10:53:46.094718
updated_at2021-10-11 10:55:40.914693
descriptionThe `Hsieh Hash` or `SuperFastHash` function
homepage
repositoryhttps://github.com/xiphoseer/sfhash
max_upload_size
id463516
size31,303
Daniel Seiler (Xiphoseer)

documentation

README

sfhash

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.

Commit count: 5

cargo fmt