diff --git a/internal/tui/components/anim/anim.go b/internal/tui/components/anim/anim.go index b1dab3c4b816e1ace67a4caa8d69c8273a188928..6f69e7b5332c7bbbb1aee6f1191acda5c7ddcfd8 100644 --- a/internal/tui/components/anim/anim.go +++ b/internal/tui/components/anim/anim.go @@ -2,7 +2,6 @@ package anim import ( - "crypto/sha256" "fmt" "image/color" "math/rand/v2" @@ -11,6 +10,8 @@ import ( "sync/atomic" "time" + "github.com/zeebo/xxh3" + tea "github.com/charmbracelet/bubbletea/v2" "github.com/charmbracelet/lipgloss/v2" "github.com/lucasb-eyer/go-colorful" @@ -78,7 +79,7 @@ var ( // settingsHash creates a hash key for the settings to use for caching func settingsHash(opts Settings) string { - h := sha256.New() + h := xxh3.New() fmt.Fprintf(h, "%d-%s-%v-%v-%v-%t", opts.Size, opts.Label, opts.LabelColor, opts.GradColorA, opts.GradColorB, opts.CycleColors) return fmt.Sprintf("%x", h.Sum(nil))