mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #35289 from zuiurs/namesgeneratorCmd
Fix a names-generator binary
This commit is contained in:
commit
e8730d052e
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue