[TD-3722]<fix>: taosdemo performance regression due to always set random seed. (#5740)

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
Shuduo Sang 2021-04-09 16:14:08 +08:00 committed by GitHub
parent fc7579cd20
commit cfba07e788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -507,11 +507,6 @@ static void resetAfterAnsiEscape(void) {
static int taosRandom()
{
struct timeval tv;
gettimeofday(&tv, NULL);
srand(tv.tv_usec);
return rand();
}