Skip to content

Commit

Permalink
fix: update ruby SDK to increase the possible random numbers used for…
Browse files Browse the repository at this point in the history
… stickiness id

Same fix as done in some other sdks, such as the node one at
https://github.com/Unleash/unleash-client-node/pull/417o

Fixes an issue where 1% rollout would not yield any results with
random rollout for certain group ids
  • Loading branch information
thomasheartman committed Sep 19, 2024
1 parent f3f7164 commit 9cbab28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unleash/strategy/flexible_rollout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def context_invalid?(stickiness, context)
end

def random
Random.rand(0..100)
Random.rand(0..10000)
end

def resolve_stickiness(stickiness, context)
Expand Down

0 comments on commit 9cbab28

Please sign in to comment.