Seed the random seed generator
This commit is contained in:
parent
f9c9455389
commit
ddad9371dc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user