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:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user