entro-hash 1.0.6

Entro Hash is a 32-bit, non-cryptographic hashing algorithm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod entro_hash;

#[cfg(test)]
mod test {
    use entro_hash::entro_hash;

    #[test]
    fn test_entro_hash() {
        let input1 = "message_1";
        let input2 = "message_2";
        let mut digest = entro_hash(input1.as_bytes(), 1111111111);

        digest = entro_hash(input2.as_bytes(), digest);
        assert_eq!(0x93047FA5, digest);
    }
}