summaryrefslogtreecommitdiff
path: root/helpfuncs.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-20 11:04:57 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-20 11:04:57 +0300
commit8c18b1b74cd53584988ab8cd55e50be81aa9aca5 (patch)
treeb902f20b850533be7fa9effd1254e444877153a1 /helpfuncs.go
parent25229d7c6fc5ae6332421050baa5757efcedb267 (diff)
Enha: remove old tool calls
Diffstat (limited to 'helpfuncs.go')
-rw-r--r--helpfuncs.go12
1 files changed, 12 insertions, 0 deletions
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)
+}