Simplify random seed initialization

There is no need to set the time zone as the result does not
depend on it
This commit is contained in:
Mikhail Mazurskiy
2018-10-11 21:01:15 +11:00
parent effd009dab
commit 3a243090a5
17 changed files with 17 additions and 17 deletions

View File

@@ -99,7 +99,7 @@ func NewKubemarkController(externalClient kubeclient.Interface, externalInformer
nodesToDelete: make(map[string]bool),
nodesToDeleteLock: sync.Mutex{},
},
rand: rand.New(rand.NewSource(time.Now().UTC().UnixNano())),
rand: rand.New(rand.NewSource(time.Now().UnixNano())),
createNodeQueue: make(chan string, 1000),
nodeGroupQueueSize: make(map[string]int),
nodeGroupQueueSizeLock: sync.Mutex{},