提交 22c9d652 编写于 作者: S Shengliang Guan

[TD-992]

上级 b628b891
...@@ -23,7 +23,7 @@ extern "C" { ...@@ -23,7 +23,7 @@ extern "C" {
// TAOS_OS_FUNC_RAND // TAOS_OS_FUNC_RAND
uint32_t taosRand(void); uint32_t taosRand(void);
void taosRandStr(char* str, int32_t size); void taosRandStr(char* str, int32_t size);
uint32_t trand(void); uint32_t taosSafeRand(void);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
uint32_t taosRand(void) { return rand(); } uint32_t taosRand(void) { return rand(); }
uint32_t trand(void) { uint32_t taosSafeRand(void) {
int fd; int fd;
int seed; int seed;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "os.h" #include "os.h"
#include "tglobal.h" #include "tglobal.h"
#include "sim.h" #include "sim.h"
#undef TAOS_MEM_CHECK
bool simAsyncQuery = false; bool simAsyncQuery = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册