{"id":21040958,"url":"https://github.com/chfoo/mx3-rs","last_synced_at":"2025-12-29T10:55:27.531Z","repository":{"id":57642280,"uuid":"363249577","full_name":"chfoo/mx3-rs","owner":"chfoo","description":"Rust implementation of the mx3 algorithm","archived":false,"fork":false,"pushed_at":"2022-06-21T18:22:00.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T09:41:19.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chfoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-30T20:17:41.000Z","updated_at":"2022-06-21T00:40:57.000Z","dependencies_parsed_at":"2022-09-26T20:22:12.918Z","dependency_job_id":null,"html_url":"https://github.com/chfoo/mx3-rs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Fmx3-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Fmx3-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Fmx3-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Fmx3-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chfoo","download_url":"https://codeload.github.com/chfoo/mx3-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243483149,"owners_count":20297940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T13:49:17.015Z","updated_at":"2025-12-29T10:55:27.467Z","avatar_url":"https://github.com/chfoo.png","language":"Rust","readme":"# mx3-rs\n\nmx3-rs is a Rust library implementing the [mx3 algorithm](https://github.com/jonmaiga/mx3/) which provides a bit mixer, pseudo-random number generator, and hash function. This crate implements versions 1, 2, and 3.\n\nThe crate is *not* intended for cryptographically secure purposes.\n\n[![Crates.io](https://img.shields.io/crates/v/mx3)](https://crates.io/crates/mx3) [![docs.rs](https://img.shields.io/docsrs/mx3)](https://docs.rs/mx3)\n\n## Quick start\n\n### Mixing bits\n\n```rust\nlet mixed_bits = mx3::v3::mix(123456789);\nprintln!(\"{:x}\", mixed_bits);\n```\n\n### Random number generation\n\n```rust\nuse rand::prelude::*;\n\nlet mut rng = mx3::v3::Mx3Rng::new(123456789);\nlet random_number = rng.gen::\u003cf64\u003e();\nprintln!(\"{}\", random_number);\n```\n\n### Hashing\n\n```rust\nlet hash_digest = mx3::v3::hash(b\"Hello world!\", 123456789);\nprintln!(\"{:x}\", hash_digest);\n```\n\n## Contributing\n\nIf you have problems or bug fixes, please use the GitHub Issues and Pull Request sections.\n\n## License\n\nCopyright (c) 2021-2022 Christopher Foo. Licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoo%2Fmx3-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchfoo%2Fmx3-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoo%2Fmx3-rs/lists"}