Skip to content

Commit

Permalink
Fix fall-through in default case.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanklee86 committed Mar 26, 2021
1 parent de74109 commit c7fa784
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UnleashClient/variants/Variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def _get_seed(context: dict, stickiness_selector: str = "default") -> str:
seed = context['sessionId']
elif 'remoteAddress' in context:
seed = context['remoteAddress']
else:
seed = str(random.random() * 10000)
elif stickiness_selector == 'random':
seed = str(random.random() * 10000)
else:
Expand Down

0 comments on commit c7fa784

Please sign in to comment.