MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetRandomInt

Function GetRandomInt

common/utils.go:187–190  ·  view source on GitHub ↗
(max int)

Source from the content-addressed store, hash-verified

185}
186
187func GetRandomInt(max int) int {
188 //rand.Seed(time.Now().UnixNano())
189 return rand.Intn(max)
190}
191
192func GetTimestamp() int64 {
193 return time.Now().Unix()

Callers 3

GenerateAccessTokenFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected