@@ -2,7 +2,6 @@
22package anim
33
44import (
5− "crypto/sha256"
65 "fmt"
76 "image/color"
87 "math/rand/v2"
@@ -11,6 +10,8 @@ import (
1110 "sync/atomic"
1211 "time"
1312
13+ "github.com/zeebo/xxh3"
14+
1415 tea "github.com/charmbracelet/bubbletea/v2"
1516 "github.com/charmbracelet/lipgloss/v2"
1617 "github.com/lucasb-eyer/go-colorful"
@@ -78,7 +79,7 @@ var (
7879
7980// settingsHash creates a hash key for the settings to use for caching
8081func settingsHash(opts Settings) string {
81− h := sha256.New()
82+ h := xxh3.New()
8283 fmt.Fprintf(h, "%d-%s-%v-%v-%v-%t",
8384 opts.Size, opts.Label, opts.LabelColor, opts.GradColorA, opts.GradColorB, opts.CycleColors)
8485 return fmt.Sprintf("%x", h.Sum(nil))