rand() is changed to random()

This commit is contained in:
Jeff Tao 2020-07-01 09:28:11 +00:00
parent 4711bb3640
commit f90f5d5fb3
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ static SRpcConn *rpcAllocateClientConn(SRpcInfo *pRpc) {
pConn->pRpc = pRpc;
pConn->sid = sid;
pConn->tranId = (uint16_t)(rand() & 0xFFFF);
pConn->tranId = (uint16_t)(random() & 0xFFFF);
pConn->ownId = htonl(pConn->sid);
pConn->linkUid = (uint32_t)((int64_t)pConn + (int64_t)getpid());
pConn->spi = pRpc->spi;