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

Function GenerateASCIIPassword

internal/util/secrets.go:77–79  ·  view source on GitHub ↗

GenerateASCIIPassword returns a random string of printable ASCII characters.

(length int)

Source from the content-addressed store, hash-verified

75
76// GenerateASCIIPassword returns a random string of printable ASCII characters.
77func GenerateASCIIPassword(length int) (string, error) {
78 return accumulate(length, randomASCII)
79}

Callers 3

SecretFunction · 0.92

Calls 1

accumulateFunction · 0.85

Tested by 1