lib/unleash/feature_toggle.rb in unleash-4.6.0 vs lib/unleash/feature_toggle.rb in unleash-5.0.0
- old
+ new
@@ -161,9 +161,10 @@
def variant_from_weights(context, stickiness, variant_definitions, group_id)
variant_weight = Unleash::Strategy::Util.get_normalized_number(
variant_salt(context, stickiness),
group_id,
+ Unleash::Strategy::Util::VARIANT_NORMALIZER_SEED,
sum_variant_defs_weights(variant_definitions)
)
prev_weights = 0
variant_definition = variant_definitions