diff --git a/pkg/namesgenerator/cmd/names-generator/main.go b/pkg/namesgenerator/cmd/names-generator/main.go index 18a939b70b..7fd5955beb 100644 --- a/pkg/namesgenerator/cmd/names-generator/main.go +++ b/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)) }