aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/id.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/id.go')
-rw-r--r--internal/app/id.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/internal/app/id.go b/internal/app/id.go
index e996a3a6..6ca48312 100644
--- a/internal/app/id.go
+++ b/internal/app/id.go
@@ -5,14 +5,13 @@ import (
"encoding/hex"
)
-type appID [16]byte
+type ID [16]byte
-func (a *appID) String() string {
+func (a *ID) String() string {
return hex.EncodeToString(a[:])
}
-func newAppID() (*appID, error) {
- a := &appID{}
- _, err := rand.Read(a[:])
- return a, err
+func newAppID(id *ID) error {
+ _, err := rand.Read(id[:])
+ return err
}