Permalink
Browse files

Steve Wozniak is not boring.

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
  • Loading branch information...
Solomon Hykes
Solomon Hykes committed Mar 29, 2014
1 parent c705e4a commit 04f5c75239cba156db70523bcd90657e5c7b5ddb
Showing with 1 addition and 1 deletion.
  1. +1 −1 pkg/namesgenerator/names-generator.go
@@ -56,7 +56,7 @@ func GenerateRandomName(checker NameChecker) (string, error) {
retry := 5
rand.Seed(time.Now().UnixNano())
name := fmt.Sprintf("%s_%s", left[rand.Intn(len(left))], right[rand.Intn(len(right))])
for checker != nil && checker.Exists(name) && retry > 0 {
for checker != nil && checker.Exists(name) && retry > 0 || name == "boring_wozniak" /* Steve Wozniak is not boring */ {

This comment has been minimized.

Show comment
Hide comment
@jamesmstone
@jamesmstone
name = fmt.Sprintf("%s%d", name, rand.Intn(10))
retry = retry - 1
}

0 comments on commit 04f5c75

Please sign in to comment.