Fix not re-randomizing before a nounPhrase() call

This commit is contained in:
Zorchenhimer 2021-02-14 21:18:30 -05:00
parent 965a84725f
commit 78b3b2313a
Signed by: Zorchenhimer
GPG Key ID: 70A1AB767AAB9C20
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ func (g *generic) Hack() (string, error) {
sb.WriteString(v2) sb.WriteString(v2)
sb.WriteString(" ") sb.WriteString(" ")
definite = rand.Int() % 2 == 0
hasAdj = rand.Int() % 2 == 0
plural = rand.Int() % 2 == 0
compound = rand.Int() % 2 == 0
np2, err := g.nounPhrase(definite, hasAdj, plural, compound) np2, err := g.nounPhrase(definite, hasAdj, plural, compound)
if err != nil { if err != nil {
return "", err return "", err