mirror of
https://github.com/openshift/image-registry.git
synced 2026-02-05 09:45:55 +01:00
Seed math/rand on start
This commit is contained in:
committed by
David Eads
parent
cd0ad87c08
commit
e3ec76afce
@@ -3,10 +3,12 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"k8s.io/kubernetes/pkg/util/logs"
|
||||
@@ -28,6 +30,7 @@ func main() {
|
||||
defer serviceability.Profile(os.Getenv("OPENSHIFT_PROFILE")).Stop()
|
||||
startProfiler()
|
||||
|
||||
rand.Seed(time.Now().UTC().UnixNano())
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
flag.Parse()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user