提交 6ce994b3 编写于 作者: H Hui Li

[Back off using rand for performance]

上级 78b1f5d6
...@@ -36,6 +36,7 @@ uint32_t taosRand(void) ...@@ -36,6 +36,7 @@ uint32_t taosRand(void)
#else #else
uint32_t taosRand(void) uint32_t taosRand(void)
{ {
/*
int fd; int fd;
int seed; int seed;
...@@ -51,6 +52,8 @@ uint32_t taosRand(void) ...@@ -51,6 +52,8 @@ uint32_t taosRand(void)
} }
return (uint32_t)seed; return (uint32_t)seed;
*/
return rand();
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册