MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / GenerateAlphaNumericPassword

Function GenerateAlphaNumericPassword

internal/util/secrets.go:62–64  ·  view source on GitHub ↗

GenerateAlphaNumericPassword returns a random alphanumeric string.

(length int)

Source from the content-addressed store, hash-verified

60
61// GenerateAlphaNumericPassword returns a random alphanumeric string.
62func GenerateAlphaNumericPassword(length int) (string, error) {
63 return accumulate(length, randomAlphaNumeric)
64}
65
66// policyASCII is the list of acceptable characters from which to generate an
67// ASCII password.

Callers 1

Calls 1

accumulateFunction · 0.85

Tested by 1