diff --git a/src/util/src/tskiplist.c b/src/util/src/tskiplist.c index 2394adc6f33b93aa38b4daca6990fbc163c0738c..f3c0babe6b849983e0f1cf417767dcf26e5dd85c 100644 --- a/src/util/src/tskiplist.c +++ b/src/util/src/tskiplist.c @@ -38,7 +38,7 @@ static FORCE_INLINE int32_t getSkipListNodeRandomHeight(SSkipList *pSkipList) { const uint32_t factor = 4; int32_t n = 1; - while ((taosRand() % factor) == 0 && n <= pSkipList->maxLevel) { + while ((rand() % factor) == 0 && n <= pSkipList->maxLevel) { n++; }