summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/tui/internal/components/chat/cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/tui/internal/components/chat/cache.go b/packages/tui/internal/components/chat/cache.go
index 1586c2cc3..ab034c411 100644
--- a/packages/tui/internal/components/chat/cache.go
+++ b/packages/tui/internal/components/chat/cache.go
@@ -1,9 +1,9 @@
package chat
import (
- "crypto/sha256"
"encoding/hex"
"fmt"
+ "hash/fnv"
"sync"
)
@@ -22,7 +22,7 @@ func NewMessageCache() *MessageCache {
// generateKey creates a unique key for a message based on its content and rendering parameters
func (c *MessageCache) GenerateKey(params ...any) string {
- h := sha256.New()
+ h := fnv.New64a()
for _, param := range params {
h.Write(fmt.Appendf(nil, ":%v", param))
}