From 9cbab2847297b7b8013e7f7541fca69281ca15b5 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Thu, 19 Sep 2024 10:34:42 +0200 Subject: [PATCH] fix: update ruby SDK to increase the possible random numbers used for 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 --- lib/unleash/strategy/flexible_rollout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unleash/strategy/flexible_rollout.rb b/lib/unleash/strategy/flexible_rollout.rb index e464d406..6e1172d2 100644 --- a/lib/unleash/strategy/flexible_rollout.rb +++ b/lib/unleash/strategy/flexible_rollout.rb @@ -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)