Browse Source

Merge pull request #35289 from zuiurs/namesgeneratorCmd

Fix a names-generator binary
Yong Tang 7 years ago
parent
commit
e8730d052e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      pkg/namesgenerator/cmd/names-generator/main.go

+ 3 - 0
pkg/namesgenerator/cmd/names-generator/main.go

@@ -2,10 +2,13 @@ package main
 
 import (
 	"fmt"
+	"math/rand"
+	"time"
 
 	"github.com/docker/docker/pkg/namesgenerator"
 )
 
 func main() {
+	rand.Seed(time.Now().UnixNano())
 	fmt.Println(namesgenerator.GetRandomName(0))
 }