Merge pull request #71170 from atlassian/rand-cleanup2

Cleanup math/rand package usage
This commit is contained in:
Kubernetes Prow Robot
2019-07-01 21:33:08 -07:00
committed by GitHub
19 changed files with 144 additions and 35 deletions

View File

@@ -22,7 +22,6 @@ import (
"crypto/tls"
"errors"
"fmt"
"math/rand"
"net"
"net/http"
"net/url"
@@ -728,8 +727,6 @@ func run(s *options.KubeletServer, kubeDeps *kubelet.Dependencies, stopCh <-chan
utilruntime.ReallyCrash = s.ReallyCrashForTesting
rand.Seed(time.Now().UnixNano())
// TODO(vmarmol): Do this through container config.
oomAdjuster := kubeDeps.OOMAdjuster
if err := oomAdjuster.ApplyOOMScoreAdj(0, int(s.OOMScoreAdj)); err != nil {