Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 339 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 339 Bytes

jenkins_hash

Native rust implementation of the hash algorithms from Bob Jenkins.

Usage

use jenkins_hash::lookup2;

fn main() {
  let data = "Hello, this is a test string. It is just used to be hashed.".as_bytes();
  let initial = 0x3875682; // start value - like a seed

  println!("{}", lookup2(&data[..], initial));
}