From e8959d8923082bf652724a8b3eb1efdfdfe92536 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Fri, 24 Mar 2017 07:14:34 -0600 Subject: [PATCH] Require random names to be smaller Former-commit-id: ec99ac305c33f7309b45fb5f12699c67e436daed --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index ebbc385..c10897c 100644 --- a/utils.go +++ b/utils.go @@ -68,7 +68,7 @@ func randomAlliterateCombo() (combo string) { for { animal := randomAnimal() adjective := randomAdjective() - if animal[0] == adjective[0] { //&& stringInSlice(strings.ToLower(adjective+animal), takenNames) == false { + if animal[0] == adjective[0] && len(animal)+len(adjective) < 18 { //&& stringInSlice(strings.ToLower(adjective+animal), takenNames) == false { combo = adjective + animal break }