← Code LabReact Native0/50 solved · 0%
Tooling · hard

46. Gating an OTA update rollout

Stage a percentage rollout deterministically per user.

Write `isInRollout(userId, rolloutPercent)` hashing `userId` to a number 0-99 (sum of char codes mod 100) and returning `true` if that value is less than `rolloutPercent`.
Required in your answer: charCodeAt