Seed the random seed generator

This commit is contained in:
Peter Stuifzand 2021-11-02 21:59:53 +01:00
parent f9c9455389
commit ddad9371dc
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -3,12 +3,18 @@ package main
import ( import (
"fmt" "fmt"
"log" "log"
"math/rand"
"net/http" "net/http"
"time"
"github.com/pkg/errors" "github.com/pkg/errors"
"p83.nl/go/ekster/pkg/server" "p83.nl/go/ekster/pkg/server"
) )
func init() {
rand.Seed(time.Now().UnixNano())
}
// App is the main app structure // App is the main app structure
type App struct { type App struct {
options AppOptions options AppOptions