Use a random seed to always generate new ids
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2021-11-06 14:37:19 +01:00
parent 001e4748dd
commit 74b1220710

View File

@ -28,6 +28,7 @@ import (
"html/template" "html/template"
"io" "io"
"log" "log"
"math/rand"
"net/http" "net/http"
"net/url" "net/url"
"os" "os"
@ -44,6 +45,7 @@ import (
func init() { func init() {
log.SetFlags(log.Lshortfile) log.SetFlags(log.Lshortfile)
rand.Seed(time.Now().UnixNano())
} }
type authorizedKey string type authorizedKey string