Skip to content

Commit

Permalink
fix: use the babbler rand
Browse files Browse the repository at this point in the history
  • Loading branch information
dhontecillas committed Mar 25, 2023
1 parent 7dfd529 commit 36dd5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babble.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (this Babbler) Babble() string {
pieces := []string{}
this.mu.Lock()
for i := 0; i < this.Count; i++ {
pieces = append(pieces, this.Words[rand.Int()%len(this.Words)])
pieces = append(pieces, this.Words[this.rand.Int()%len(this.Words)])
}
this.mu.Unlock()
return strings.Join(pieces, this.Separator)
Expand Down

0 comments on commit 36dd5cf

Please sign in to comment.