MCPcopy Index your code
hub / github.com/devspace-sh/devspace / GenerateRandomString

Function GenerateRandomString

pkg/util/randutil/rand.go:10–16  ·  view source on GitHub ↗

GenerateRandomString returns a random strin containing only letters

(length int)

Source from the content-addressed store, hash-verified

8
9// GenerateRandomString returns a random strin containing only letters
10func GenerateRandomString(length int) string {
11 b := make([]rune, length)
12 for i := range b {
13 b[i] = letters[rand.Intn(len(letters))]
14 }
15 return string(b)
16}

Callers 7

NewContextFunction · 0.92
StartNewPipelinesMethod · 0.92
AcquireGlobalSilenceFunction · 0.92
sync.goFile · 0.92
CreateNamespaceMethod · 0.92
TestGenerateRandomStringFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGenerateRandomStringFunction · 0.68