summary refs log tree commit diff stats
path: root/auth/gentoken.go
diff options
context:
space:
mode:
Diffstat (limited to 'auth/gentoken.go')
-rw-r--r--auth/gentoken.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/auth/gentoken.go b/auth/gentoken.go
new file mode 100644
index 0000000..1e01875
--- /dev/null
+++ b/auth/gentoken.go
@@ -0,0 +1,8 @@
+package auth
+
+// genToken generates a random token string of length n. Don't forget to
+// seed the random number generator otherwise it won't be random.
+func genToken(n int) string {
+	// Currently this is just a wrapper to genID.
+	return genID(n)
+}