Seed the random seed generator
This commit is contained in:
parent
f9c9455389
commit
ddad9371dc
|
@ -3,12 +3,18 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"p83.nl/go/ekster/pkg/server"
|
||||
)
|
||||
|
||||
func init() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
}
|
||||
|
||||
// App is the main app structure
|
||||
type App struct {
|
||||
options AppOptions
|
||||
|
|
Loading…
Reference in New Issue
Block a user