MCPcopy Create free account
hub / github.com/LumaAI-API/Luma-API / GetRandomString

Function GetRandomString

common/utils.go:113–120  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

111}
112
113func GetRandomString(length int) string {
114 //rand.Seed(time.Now().UnixNano())
115 key := make([]byte, length)
116 for i := 0; i < length; i++ {
117 key[i] = keyChars[rand.Intn(len(keyChars))]
118 }
119 return string(key)
120}
121
122func GetTimeString() string {
123 now := time.Now()

Callers 1

RequestIdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected