Seed the RNG at startup
continuous-integration/drone/push Build is passing Details

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
1 changed files with 5 additions and 0 deletions

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)