mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-09 06:35:03 +00:00
include alpha-numeric random string generation in secret package
This commit is contained in:
1 parent
a4be45186d
commit
22bca16226
2 files changed
+30
-8
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user