mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-05-20 10:42:46 +00:00
8 lines
164 B
Rust
8 lines
164 B
Rust
pub struct Hasher {}
|
|
impl Hasher {
|
|
pub fn hash(n: u16) -> String {
|
|
let digest = md5::compute(format!("{}", n));
|
|
format!("{:x}", digest)
|
|
}
|
|
}
|