Skip to content

Commit

Permalink
fix: use the defined delim for namegen instead of the hardcoded "-"
Browse files Browse the repository at this point in the history
  • Loading branch information
gegaryfa committed Feb 13, 2024
1 parent 5197c6e commit f2a22d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion namegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (n nameGen) GetForId(randNum int64) string {
d := dicts[dIdx]
sb.WriteString(d[randIdxArr[i]])
if (i < len(n.dicts)-1) || (n.pIdLen > 0) {
sb.WriteString("-")
sb.WriteString(n.delim)
}
}
if n.pIdLen > 0 {
Expand Down

0 comments on commit f2a22d0

Please sign in to comment.