Skip to content

Commit

Permalink
Merge pull request #13 from gegaryfa/fix_delim
Browse files Browse the repository at this point in the history
fix: use the defined delim for namegen instead of the hardcoded "-"
  • Loading branch information
anandvarma authored Feb 13, 2024
2 parents 5197c6e + f2a22d0 commit 73f15f5
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 73f15f5

Please sign in to comment.