Cleanup math/rand package usage

This commit is contained in:
Mikhail Mazurskiy
2018-11-17 16:45:36 +11:00
parent 01f6e684b2
commit 4ce1fb7d40
14 changed files with 83 additions and 35 deletions

View File

@@ -22,7 +22,6 @@ import (
"crypto/tls"
"errors"
"fmt"
"math/rand"
"net"
"net/http"
"net/url"
@@ -702,8 +701,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 {