mx3 0.2.0

Implementation of the mx3 algorithm providing a bit mixer, pseudo-random number generator, and hash function.
Documentation

mx3-rs

mx3-rs is a Rust library implementing the mx3 algorithm which provides a bit mixer, pseudo-random number generator, and hash function. This crate implements revision 2.

The crate is not intended for cryptographically secure purposes.

Crates.io docs.rs

Quick start

Mixing bits

let mixed_bits = mx3::mix(123456789);
println!("{:x}", mixed_bits);

Random number generation

use rand::prelude::*;

let mut rng = mx3::Mx3Rng::new(123456789);
let random_number = rng.gen::<f64>();
println!("{}", random_number);

Hashing

let hash_digest = mx3::hash(b"Hello world!", 123456789);
println!("{:x}", hash_digest);

Contributing

If you have problems or bug fixes, please use the GitHub Issues and Pull Request sections.

License

Copyright (c) 2021 Christopher Foo. Licensed under the MIT License.