From 6ce994b3e6219e100f2df1adbdb842502fe53833 Mon Sep 17 00:00:00 2001 From: Hui Li Date: Fri, 19 Jun 2020 18:41:22 +0800 Subject: [PATCH] [Back off using rand for performance] --- src/util/src/tutil.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/src/tutil.c b/src/util/src/tutil.c index 4469ad79b1..150767643f 100644 --- a/src/util/src/tutil.c +++ b/src/util/src/tutil.c @@ -36,6 +36,7 @@ uint32_t taosRand(void) #else uint32_t taosRand(void) { +/* int fd; int seed; @@ -51,6 +52,8 @@ uint32_t taosRand(void) } return (uint32_t)seed; +*/ + return rand(); } #endif -- GitLab