[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:
parent
fc7579cd20
commit
cfba07e788
|
@ -507,11 +507,6 @@ static void resetAfterAnsiEscape(void) {
|
||||||
|
|
||||||
static int taosRandom()
|
static int taosRandom()
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
|
||||||
|
|
||||||
gettimeofday(&tv, NULL);
|
|
||||||
srand(tv.tv_usec);
|
|
||||||
|
|
||||||
return rand();
|
return rand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue