MCPcopy
hub / github.com/cortexlabs/cortex / String

Function String

pkg/lib/random/random.go:69–71  ·  view source on GitHub ↗

String generates a random string containing both digits and english alphabet characters (upper and lower)

(n int)

Source from the content-addressed store, hash-verified

67
68// String generates a random string containing both digits and english alphabet characters (upper and lower)
69func String(n int) string {
70 return randomString(n, rand.NewSource(time.Now().UnixNano()), _stringBytes)
71}
72
73func LowercaseString(n int) string {
74 return randomString(n, rand.NewSource(time.Now().UnixNano()), _lowercaseBytes+_numberBytes)

Callers 4

randomMessageIDFunction · 0.92
uploadTestAPISpecFunction · 0.92

Calls 1

randomStringFunction · 0.85

Tested by 2

uploadTestAPISpecFunction · 0.74