Skip to content

Commit

Permalink
fix: updates a comment to remove the wrong range (#180)
Browse files Browse the repository at this point in the history

Relates to a related fix done in some other sdks, such as the node one at
Unleash/unleash-client-node#417

In this case, the comment was misleading, so we can edit it.
  • Loading branch information
thomasheartman authored Sep 19, 2024
1 parent f544a66 commit 9ed9c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/strategies/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func (r *rng) string() string {
return strconv.Itoa(n)
}

// newRng creates a new random number generator for numbers between 1-100
// and uses a mutex internally to ensure safe concurrent reads.
// newRng creates a new random number generator and uses a mutex
// internally to ensure safe concurrent reads.
func newRng() *rng {
seed := time.Now().UnixNano() + int64(os.Getpid())
return &rng{random: rand.New(rand.NewSource(seed))}
Expand Down

0 comments on commit 9ed9c22

Please sign in to comment.