MCPcopy Create free account
hub / github.com/Shopify/goluago / randomString

Function randomString

util/deep_pull_test.go:70–77  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

68}()
69
70func randomString(size int) string {
71
72 buf := bytes.NewBuffer(make([]byte, 0, size))
73 for _ = range iter.N(size) {
74 buf.WriteRune(alphabet[rand.Intn(len(alphabet))])
75 }
76 return buf.String()
77}
78
79/////////////////
80// From lua to Go

Callers 1

randomMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected