Skip to content

Commit

Permalink
Steve Wozniak is not boring.
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
  • Loading branch information
Solomon Hykes committed Mar 29, 2014
1 parent c705e4a commit 04f5c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/namesgenerator/names-generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
@jamesmstone

jamesmstone Mar 19, 2017

👍

This comment has been minimized.

Copy link
@sadikkuzu

sadikkuzu Mar 9, 2020

This comment has been minimized.

Copy link
@mehmetutuncu

mehmetutuncu Mar 9, 2020

:)

This comment has been minimized.

Copy link
@Ksenofanex

Ksenofanex Jun 22, 2022

The Great and Powerful Woz. :P

This comment has been minimized.

Copy link
@razrotenberg

razrotenberg Jul 9, 2023

😀

This comment has been minimized.

Copy link
@fahadashraf-whizzbridge

fahadashraf-whizzbridge Nov 21, 2023

This is awesome! 🤣

name = fmt.Sprintf("%s%d", name, rand.Intn(10))
retry = retry - 1
}
Expand Down

0 comments on commit 04f5c75

Please sign in to comment.