(input: &str)
| 10 | use crate::render::ART_PATH; |
| 11 | |
| 12 | pub fn hash(input: &str) -> String { |
| 13 | let mut hasher = Sha256::new(); |
| 14 | hasher.update(input.as_bytes()); |
| 15 | let result = hasher.finalize(); |
| 16 | let mut x = format!("{:x}", &result); |
| 17 | x.truncate(24); |
| 18 | x |
| 19 | } |
| 20 | |
| 21 | /// Get pixel height of a character |
| 22 | pub fn char_pixel_height() -> usize { |
no outgoing calls
no test coverage detected