include alpha-numeric random string generation in secret package

This commit is contained in:
Pavel Sviderski
2024-11-14 11:45:28 +10:00
parent a4be45186d
commit 22bca16226
2 changed files with 30 additions and 8 deletions
-8
View File
@@ -54,11 +54,3 @@ func New(len int) (Secret, error) {
}
return s, nil
}
func NewID() (string, error) {
if s, err := New(16); err != nil {
return "", err
} else {
return s.String(), nil
}
}