Localkube wasn't seeding it's random number generator, leading to

conflicting docker container names.
pull/6/head
Justin Huff 2014-06-21 11:48:16 -07:00
parent 25997dcfe2
commit c9473431fb
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import (
"flag"
"fmt"
"log"
"math/rand"
"net"
"os"
"strconv"
@ -96,6 +97,7 @@ func controller_manager() {
func main() {
flag.Parse()
rand.Seed(time.Now().UTC().UnixNano())
// Set up logger for etcd client
etcd.SetLogger(log.New(os.Stderr, "etcd ", log.LstdFlags))