Seed the RNG at startup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Hamcha 2019-08-23 17:09:25 +02:00
parent e410b629ed
commit 768f930f50
Signed by: hamcha
GPG key ID: 44AD3571EB09A39E

View file

@ -3,9 +3,11 @@ package main
import (
"crypto/tls"
"fmt"
"math/rand"
"net/http"
"os"
"strings"
"time"
"git.fromouter.space/mcg/mlp-server-tools/draftbot"
@ -57,6 +59,9 @@ func main() {
initTemplates()
// Seed RNG
rand.Seed(time.Now().UnixNano())
logger = log.NewLogfmtLogger(os.Stderr)
logger = log.With(logger, "ts", log.DefaultTimestampUTC)
logger = log.With(logger, "caller", log.DefaultCaller)