summary refs log tree commit diff stats
path: root/auth/genid.go
diff options
context:
space:
mode:
Diffstat (limited to 'auth/genid.go')
-rw-r--r--auth/genid.go14
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)
-}