Merge pull request #35289 from zuiurs/namesgeneratorCmd

Fix a names-generator binary
This commit is contained in:
Yong Tang 2017-10-28 13:16:33 -07:00 committed by GitHub
commit e8730d052e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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))
}