pub fn hash(string: String) -> u32
Expand description
A custom hash function that is used in image generation.
It works for any String
.
ยงExamples
use random_icon_lib::hashing::hash;
let my_string = "Lorem ipsum dolor sit amet...".to_string();
let my_hash = hash(my_string);
assert_eq!(my_hash, 2471472878)