MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / GetRandomString

Function GetRandomString

common/str.go:18–25  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

16}
17
18func GetRandomString(length int) string {
19 //rand.Seed(time.Now().UnixNano())
20 key := make([]byte, length)
21 for i := 0; i < length; i++ {
22 key[i] = keyChars[rand.Intn(len(keyChars))]
23 }
24 return string(key)
25}
26
27func MapToJsonStr(m map[string]interface{}) string {
28 bytes, err := json.Marshal(m)

Callers 6

RequestIdFunction · 0.92
GenerateOAuthCodeFunction · 0.92
RequestEpayFunction · 0.92
GetAffCodeFunction · 0.92
InsertMethod · 0.92
generateMessageIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected