hsieh-hash

Crates.iohsieh-hash
lib.rshsieh-hash
version0.1.1
sourcesrc
created_at2019-07-05 11:15:43.342654
updated_at2019-07-05 13:33:22.449716
descriptionThe `Hsieh Hash` or `SuperFastHash` function
homepagehttps://crates.io/crates/hsieh-hash
repositoryhttps://github.com/xiphoseer/rust-hsieh-hash
max_upload_size
id146523
size31,639
Daniel Seiler (Xiphoseer)

documentation

README

hsieh-hash

This crate contains the Hsieh Hash or SuperFastHash function created by Paul Hsieh and presented at http://www.azillionmonkeys.com/qed/hash.html

use hsieh_hash::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