[Back off using rand for performance]

This commit is contained in:
Hui Li 2020-06-19 18:41:22 +08:00
parent 78b1f5d632
commit 6ce994b3e6
1 changed files with 3 additions and 0 deletions

View File

@ -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)
} }
return (uint32_t)seed; return (uint32_t)seed;
*/
return rand();
} }
#endif #endif