From 22c9d652a8a82b382380c541dc3696b6afdc4ad0 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Fri, 31 Jul 2020 06:51:02 +0000 Subject: [PATCH] [TD-992] --- src/os/inc/osRand.h | 2 +- src/os/src/detail/osRand.c | 2 +- tests/tsim/src/simMain.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/os/inc/osRand.h b/src/os/inc/osRand.h index 310340d420..803c0688bb 100644 --- a/src/os/inc/osRand.h +++ b/src/os/inc/osRand.h @@ -23,7 +23,7 @@ extern "C" { // TAOS_OS_FUNC_RAND uint32_t taosRand(void); void taosRandStr(char* str, int32_t size); -uint32_t trand(void); +uint32_t taosSafeRand(void); #ifdef __cplusplus } diff --git a/src/os/src/detail/osRand.c b/src/os/src/detail/osRand.c index 7e5f585634..edb8642bd6 100644 --- a/src/os/src/detail/osRand.c +++ b/src/os/src/detail/osRand.c @@ -20,7 +20,7 @@ uint32_t taosRand(void) { return rand(); } -uint32_t trand(void) { +uint32_t taosSafeRand(void) { int fd; int seed; diff --git a/tests/tsim/src/simMain.c b/tests/tsim/src/simMain.c index 5b2fc87307..ef1a488f60 100644 --- a/tests/tsim/src/simMain.c +++ b/tests/tsim/src/simMain.c @@ -16,6 +16,7 @@ #include "os.h" #include "tglobal.h" #include "sim.h" +#undef TAOS_MEM_CHECK bool simAsyncQuery = false;