merged main, dev, and i guess got accounts working??
i am so good at commit messages :3
This commit is contained in:
commit
5566a795da
53 changed files with 1366 additions and 398 deletions
13
controller/controller.go
Normal file
13
controller/controller.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package controller
|
||||
|
||||
import "math/rand"
|
||||
|
||||
func GenerateAlnumString(length int) []byte {
|
||||
const CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
||||
res := []byte{}
|
||||
for i := 0; i < length; i++ {
|
||||
res = append(res, CHARS[rand.Intn(len(CHARS))])
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue