This commit is contained in:
Shengliang Guan 2020-07-31 06:51:02 +00:00
parent b628b891e4
commit 22c9d652a8
3 changed files with 3 additions and 2 deletions

View File

@ -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
} }

View File

@ -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;

View File

@ -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;