Skip to content

Commit 60eeb50

Browse files
committed
rever: opt in
1 parent 1584c0a commit 60eeb50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/task_queue/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function taskIdFactory() {
4646
let taskIdCounter = 0;
4747
const maxint = 2147483647;
4848
return () => {
49-
taskIdCounter = (taskIdCounter + 1) % (maxint + 1);
49+
taskIdCounter = (taskIdCounter + 1) & maxint;
5050
return taskIdCounter.toString(36);
5151
}
5252
}

0 commit comments

Comments
 (0)