mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 00:04:43 +02:00
service name refactoring (#59)
This commit is contained in:
@ -46,10 +46,10 @@ func createToken() string {
|
||||
return shortuuid.New()
|
||||
}
|
||||
|
||||
func randomId() (string, error) {
|
||||
bytes := make([]byte, 8)
|
||||
func createServiceName() (string, error) {
|
||||
bytes := make([]byte, 4)
|
||||
if _, err := rand.Read(bytes); err != nil {
|
||||
return "", errors.Wrap(err, "error generating random identity id")
|
||||
return "", errors.Wrap(err, "error generating service name")
|
||||
}
|
||||
return hex.EncodeToString(bytes), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user