1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Merge pull request #35289 from zuiurs/namesgeneratorCmd

Fix a names-generator binary
Upstream-commit: e8730d052e625af3666176f7c1f596bb07fccbe2
Component: engine
This commit is contained in:
Yong Tang
2017-10-28 13:16:33 -07:00
committed by GitHub

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