Use a random seed to always generate new ids
continuous-integration/drone/push Build is passing Details

master
Peter Stuifzand 2 years ago
parent 001e4748dd
commit 74b1220710

@ -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

Loading…
Cancel
Save