diff options
Diffstat (limited to 'src/protocol/reqrep/req.c')
| -rw-r--r-- | src/protocol/reqrep/req.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c index 3c3bba9c..5b9671f8 100644 --- a/src/protocol/reqrep/req.c +++ b/src/protocol/reqrep/req.c @@ -58,7 +58,7 @@ nni_req_sock_init(void **reqp, nni_sock *sock) return (rv); } // this is "semi random" start for request IDs. - req->nextid = (nni_clock() >> 32) ^ (nni_clock() & 0xffffffff); + req->nextid = nni_random(); req->retry = NNI_SECOND * 60; req->sock = sock; req->reqmsg = NULL; |
