diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-21 22:52:21 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-21 22:52:21 +0200 |
commit | baad75737135eced6f33fecc1c4104f70719c0ce (patch) | |
tree | b8b6a8aa13252168c08a41537458747893ee12d7 /utils.go | |
parent | 6e3c40ccb5597a93c3e9d9b4766005c6de424f85 (diff) |
Finish the big cleanup
Diffstat (limited to 'utils.go')
-rw-r--r-- | utils.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/utils.go b/utils.go deleted file mode 100644 index 5aa2894..0000000 --- a/utils.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -import ( - "crypto/rand" - "encoding/base64" -) - -func GenerateRandomString(len int) (string, error) { - bin := make([]byte, len) - _, err := rand.Read(bin) - if err != nil { - return "", err - } - return base64.StdEncoding.EncodeToString(bin), nil -} |