[Back off using rand for performance]
This commit is contained in:
parent
78b1f5d632
commit
6ce994b3e6
|
@ -36,6 +36,7 @@ uint32_t taosRand(void)
|
||||||
#else
|
#else
|
||||||
uint32_t taosRand(void)
|
uint32_t taosRand(void)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
int fd;
|
int fd;
|
||||||
int seed;
|
int seed;
|
||||||
|
|
||||||
|
@ -51,6 +52,8 @@ uint32_t taosRand(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (uint32_t)seed;
|
return (uint32_t)seed;
|
||||||
|
*/
|
||||||
|
return rand();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue