Merge pull request #4902 from shykes/wozniak_is_not_boring
Steve Wozniak is not boring. Upstream-commit: 431046e0f5ccf2a16c4530b996e035447ce37b63 Component: engine
This commit is contained in:
@ -83,7 +83,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 */ {
|
||||
name = fmt.Sprintf("%s%d", name, rand.Intn(10))
|
||||
retry = retry - 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user