summaryrefslogtreecommitdiff
path: root/utils/RandomId.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/RandomId.go')
-rw-r--r--utils/RandomId.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/utils/RandomId.go b/utils/RandomId.go
deleted file mode 100644
index 1b03ec8..0000000
--- a/utils/RandomId.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package utils
-
-import (
- "crypto/rand"
- "fmt"
-)
-
-func RandomId() string {
- id := make([]byte, 16)
- _, err := rand.Read(id)
- if err != nil {
- panic(err)
- }
-
- return fmt.Sprintf("%x", id)
-}