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"
"io"
"log"
"math/rand"
"net/http"
"net/url"
"os"
@ -44,6 +45,7 @@ import (
func init() {
log.SetFlags(log.Lshortfile)
rand.Seed(time.Now().UnixNano())
}
type authorizedKey string