diff --git a/main.go b/main.go index 0458bee7864f..0c22b74523a8 100644 --- a/main.go +++ b/main.go @@ -23,24 +23,14 @@ import ( "fmt" "math/rand" "os" - "runtime" "github.com/cockroachdb/cockroach/cli" - "github.com/cockroachdb/cockroach/util/log" "github.com/cockroachdb/cockroach/util/randutil" ) func main() { - // Instruct Go to use all CPU cores. - // TODO(spencer): this may be excessive and result in worse - // performance. We should keep an eye on this as we move to - // production workloads. - numCPU := runtime.NumCPU() - runtime.GOMAXPROCS(numCPU) + // Seed the math/rand RNG from crypto/rand. rand.Seed(randutil.NewPseudoSeed()) - if log.V(1) { - log.Infof("running using %d processor cores", numCPU) - } if len(os.Args) == 1 { os.Args = append(os.Args, "help")