diff --git a/src/lib.rs b/src/lib.rs index f63008d..7eb4df8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,5 +19,4 @@ pub fn color_id_from_name(name: String) -> i32 { let mut s = DefaultHasher::new(); name.hash(&mut s); let hash = s.finish(); - (hash.count_ones() / 4) as i32 -} + (hash % 16) as i32 }