about summary refs log tree commit diff
path: root/src/access.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/access.go')
-rw-r--r--src/access.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/access.go b/src/access.go
deleted file mode 100644
index 6de2c05..0000000
--- a/src/access.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package main
-
-import (
-	"math/rand"
-	"strings"
-	"time"
-)
-
-func newAccessCode(length int) string {
-	// seed the random numbergenerator
-	rand.Seed(time.Now().UnixNano())
-
-	// define the alphabet
-	chars := []rune("ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
-		"abcdefghijklmnopqrstuvwxyz" +
-		"0123456789")
-
-	// build the accesscode
-	var b strings.Builder
-	for i := 0; i < length; i++ {
-		b.WriteRune(chars[rand.Intn(len(chars))])
-	}
-	str := b.String()
-
-	return str
-}