getNextReqId: replaced the algorithm to generate the ReqId