Use rand() instead of random(), it's more standard

Remove the random() stubs from the codebase

PUBLISHED_FROM=0f56ec7dffa0af1f5061a17d8801239d6f0e32a5
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-07-22 11:06:16 +00:00
1 parent b987df1974
commit 15643f8e67
2 files changed
+3 -17

No files matched your search

-6
View File
@@ -151,7 +151,6 @@
#include <sys/stat.h>
#include <time.h>
#define random() rand()
#ifdef _MSC_VER
#pragma comment(lib, "ws2_32.lib") /* Linking with winsock library */
#endif
@@ -187,7 +186,6 @@
#else
#define fseeko(x, y, z) fseek((x), (y), (z))
#endif
#define random() rand()
typedef int socklen_t;
#if _MSC_VER >= 1700
#include <stdint.h>
@@ -460,8 +458,6 @@ int asprintf(char **strp, const char *fmt, ...);
#endif
long int random(void);
/* TI's libc does not have stat & friends, add them. */
#ifdef __TI_COMPILER_VERSION__
@@ -582,8 +578,6 @@ struct SlTimeval_t;
int gettimeofday(struct timeval *t, void *tz);
#endif
long int random(void);
/* TI's libc does not have stat & friends, add them. */
#ifdef __TI_COMPILER_VERSION__