diff --git a/internal/dao/log_item.go b/internal/dao/log_item.go index af6e09d5..cde710dd 100644 --- a/internal/dao/log_item.go +++ b/internal/dao/log_item.go @@ -3,6 +3,7 @@ package dao import ( "bytes" "fmt" + "math/rand" "regexp" "strings" "time" @@ -91,7 +92,12 @@ func colorFor(n string) int { for _, r := range n { sum += int(r) } - return sum % 256 + + c := sum % 256 + if c == 0 { + c = 207 + rand.Intn(10) + } + return c } // ----------------------------------------------------------------------------