diff --git a/logger.js b/logger.js
index <HASH>..<HASH> 100644
--- a/logger.js
+++ b/logger.js
@@ -103,7 +103,7 @@ function reqIdGenFactory (func) {
   var maxInt = 2147483647
   var nextReqId = 0
   return function genReqId (req) {
-    return req.id || (nextReqId = (nextReqId % maxInt) + 1)
+    return req.id || (nextReqId = (nextReqId + 1) & maxInt)
   }
 }
Because maxInt is 2^<I> -1, using a boolean mask to force loop of requestId is faster than modulus by 7x on my Macbook Pro