diff options
author | Andinus <andinus@nand.sh> | 2020-03-29 16:10:59 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-03-29 16:10:59 +0530 |
commit | a6826055bf4e6a23f80da047ccfe4509a209f3a6 (patch) | |
tree | f2bb2bec35ee5e61cb42f4edffb04368a0f8ba60 /auth/genid.go | |
parent | 7b95d6b80dd2d1efb26f7c515383abd4f0dc9d42 (diff) | |
download | perseus-a6826055bf4e6a23f80da047ccfe4509a209f3a6.tar.gz |
Initial perseus rewrite
Diffstat (limited to 'auth/genid.go')
-rw-r--r-- | auth/genid.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/auth/genid.go b/auth/genid.go deleted file mode 100644 index fea7ac9..0000000 --- a/auth/genid.go +++ /dev/null @@ -1,14 +0,0 @@ -package auth - -import ( - "crypto/rand" - "encoding/base64" -) - -// genID generates a random id string of length n. Don't forget to -// seed the random number generator otherwise it won't be random. -func genID(n int) string { - b := make([]byte, n/2) - rand.Read(b) - return base64.StdEncoding.EncodeToString(b) -} |