Merge pull request #69670 from atlassian/simplify-rand-seed

Simplify rand seeding
This commit is contained in:
k8s-ci-robot
2018-10-15 13:53:01 -07:00
committed by GitHub
22 changed files with 28 additions and 22 deletions

View File

@@ -732,7 +732,7 @@ func run(s *options.KubeletServer, kubeDeps *kubelet.Dependencies, stopCh <-chan
utilruntime.ReallyCrash = s.ReallyCrashForTesting
rand.Seed(time.Now().UTC().UnixNano())
rand.Seed(time.Now().UnixNano())
// TODO(vmarmol): Do this through container config.
oomAdjuster := kubeDeps.OOMAdjuster