未验证 提交 cfba07e7 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

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

Co-authored-by: NShuduo Sang <sdsang@taosdata.com>
上级 fc7579cd
...@@ -507,11 +507,6 @@ static void resetAfterAnsiEscape(void) { ...@@ -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();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册