|
@@ -840,13 +840,13 @@ var (
|
|
// integer between 0 and 10 will be added to the end of the name, e.g `focused_turing3`
|
|
// integer between 0 and 10 will be added to the end of the name, e.g `focused_turing3`
|
|
func GetRandomName(retry int) string {
|
|
func GetRandomName(retry int) string {
|
|
begin:
|
|
begin:
|
|
- name := fmt.Sprintf("%s_%s", left[rand.Intn(len(left))], right[rand.Intn(len(right))])
|
|
|
|
|
|
+ name := fmt.Sprintf("%s_%s", left[rand.Intn(len(left))], right[rand.Intn(len(right))]) //nolint:gosec // G404: Use of weak random number generator (math/rand instead of crypto/rand)
|
|
if name == "boring_wozniak" /* Steve Wozniak is not boring */ {
|
|
if name == "boring_wozniak" /* Steve Wozniak is not boring */ {
|
|
goto begin
|
|
goto begin
|
|
}
|
|
}
|
|
|
|
|
|
if retry > 0 {
|
|
if retry > 0 {
|
|
- name = fmt.Sprintf("%s%d", name, rand.Intn(10))
|
|
|
|
|
|
+ name = fmt.Sprintf("%s%d", name, rand.Intn(10)) //nolint:gosec // G404: Use of weak random number generator (math/rand instead of crypto/rand)
|
|
}
|
|
}
|
|
return name
|
|
return name
|
|
}
|
|
}
|