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