diff options
Diffstat (limited to 'bug')
-rw-r--r-- | bug/label.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bug/label.go b/bug/label.go index 75d6b012..9d1e99a7 100644 --- a/bug/label.go +++ b/bug/label.go @@ -1,13 +1,14 @@ package bug import ( - "crypto/sha1" + "crypto/sha256" "fmt" "image/color" "strings" - "github.com/MichaelMure/git-bug/util/text" fcolor "github.com/fatih/color" + + "github.com/MichaelMure/git-bug/util/text" ) type Label string @@ -42,7 +43,7 @@ func (l Label) Color() LabelColor { } id := 0 - hash := sha1.Sum([]byte(l)) + hash := sha256.Sum256([]byte(l)) for _, char := range hash { id = (id + int(char)) % len(colors) } |