cleanup code

This commit is contained in:
2025-02-01 06:54:40 -06:00
parent f421249943
commit f853b22b43
5 changed files with 10 additions and 34 deletions

View File

@@ -268,8 +268,7 @@ func Choice[T any](items []T) T {
return items[r.Intn(len(items))]
}
// GenerateRandomString creates a random string of a specified length.
func GenerateRandomString(length int) string {
func GenerateNonSecureRandomString(length int) string {
charset := []rune("abcdefghijklmnopqrstuvwxyz0123456789")
b := make([]rune, length)
for i := range b {