GenerateAlphaNumericPassword returns a random alphanumeric string.
(length int)
| 60 | |
| 61 | // GenerateAlphaNumericPassword returns a random alphanumeric string. |
| 62 | func 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. |