MCPcopy Create free account
hub / github.com/auth0/auth0-cli / randomStringOfLength

Function randomStringOfLength

internal/keyring/keyring_test.go:153–161  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

151}
152
153func randomStringOfLength(length int) string {
154 var seededRand = rand.New(rand.NewSource(time.Now().UnixNano()))
155 charset := "abcdefghijklmnopqrstuvwxyz0123456789"
156 b := make([]byte, length)
157 for i := range b {
158 b[i] = charset[seededRand.Intn(len(charset))]
159 }
160 return string(b)
161}

Callers 1

TestSecretsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected