wyhash 0.1.0

Rust implementation of the WyHash fast non-cryptographic hashing algorithm.
Documentation

Rust implementation of the wyhash fast non-cryptographic hashing algorithm

crates.io Docs Build Status Maintenance Intention

This is a Rust implementation of the wyhash algorithm by Wang Yi. The generated hashes are equal (see tests).

Usage

no_std mode is activated by setting default-features = false;

extern crate wyhash;
use wyhash::WyHash;
use std::hash::Hasher;

fn main() {    
  let mut hasher = WyHash::with_seed(1);
  hasher.write(&[0]);
  assert_eq!(0xcb4b8ebdf7240e2c, hasher.finish());
}

Status

  • Hashing function
  • PRNG

Support

For questions, issues, feature requests, and other changes, please file an issue in the github project.

License

Licensed under

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.