Remove extraneous rand.Seed

Upstream-commit: 9518503ebed1e4165d25e3c5b5164e61f457c14c
Component: engine
This commit is contained in:
Jonathan Rudenberg
2013-03-26 16:54:28 -04:00
parent c8d7429350
commit a2dbca10d0

View File

@ -9,7 +9,6 @@ import (
"github.com/dotcloud/docker/rcli"
"io"
"log"
"math/rand"
"net/http"
"net/url"
"runtime"
@ -896,7 +895,6 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
}
func NewServer() (*Server, error) {
rand.Seed(time.Now().UTC().UnixNano())
if runtime.GOARCH != "amd64" {
log.Fatalf("The docker runtime currently only supports amd64 (not %s). This will change in the future. Aborting.", runtime.GOARCH)
}