(deviceId: string, version: string)
| 22 | * so each release reshuffles which devices land in the early batches. |
| 23 | */ |
| 24 | export function rolloutBucket(deviceId: string, version: string): number { |
| 25 | const digest = createHash('sha256').update(`${deviceId}:${version}`, 'utf-8').digest(); |
| 26 | return digest.readUInt32BE(0) % 100; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Delay assigned to a bucket by the published plan. Batches claim bucket |
no test coverage detected