summaryrefslogtreecommitdiff
path: root/utils/RandomId.go
diff options
context:
space:
mode:
authorElizabeth <elizabeth@simponic.xyz>2024-04-09 18:39:14 -0400
committersimponic <simponic@hatecomputers.club>2024-04-09 18:39:14 -0400
commit1d75bf7489527925217bd5611ba7910c0ffe077c (patch)
tree3b6e6056912648a88e1e42c1e42ed7e58e2d4701 /utils/RandomId.go
parentee49015cc90e6c136ad94243fffc9241b9506a36 (diff)
downloadhatecomputers.club-1d75bf7489527925217bd5611ba7910c0ffe077c.tar.gz
hatecomputers.club-1d75bf7489527925217bd5611ba7910c0ffe077c.zip
profiles (#7)
Reviewed-on: https://git.hatecomputers.club/hatecomputers/hatecomputers.club/pulls/7 Co-authored-by: Elizabeth <elizabeth@simponic.xyz> Co-committed-by: Elizabeth <elizabeth@simponic.xyz>
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)
-}