From 8c18b1b74cd53584988ab8cd55e50be81aa9aca5 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 20 Dec 2025 11:04:57 +0300 Subject: Enha: remove old tool calls --- helpfuncs.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'helpfuncs.go') diff --git a/helpfuncs.go b/helpfuncs.go index 194d68c..30d9967 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -9,6 +9,8 @@ import ( "path" "strings" "unicode" + + "math/rand/v2" ) func isASCII(s string) bool { @@ -239,3 +241,13 @@ func makeStatusLine() string { isRecording, persona, botPersona, injectRole) return statusLine + imageInfo + shellModeInfo } + +var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") + +func randString(n int) string { + b := make([]rune, n) + for i := range b { + b[i] = letters[rand.IntN(len(letters))] + } + return string(b) +} -- cgit v1.2.3