Use random Seed
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2019-02-25 20:09:52 +01:00
parent e7de7703ab
commit 3a7cf081f0

View File

@ -2,8 +2,15 @@ package main
import (
"math/rand"
"time"
)
var random *rand.Rand
func init() {
random = rand.New(rand.NewSource(time.Now().UnixNano()))
}
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
func RandStringBytes(n int) string {