Added LWIP_RAND() define

This commit is contained in:
goldsimon 2010-01-10 11:12:07 +00:00
parent e59072922c
commit d0c399570e
2 changed files with 5 additions and 1 deletions

View File

@ -80,5 +80,7 @@ typedef unsigned long mem_ptr_t;
#define LWIP_PLATFORM_ASSERT(x) do {printf("Assertion \"%s\" failed at line %d in %s\n", \
x, __LINE__, __FILE__); fflush(NULL); abort();} while(0)
#define LWIP_RAND() ((u32_t)rand())
#endif /* __ARCH_CC_H__ */

View File

@ -103,4 +103,6 @@ typedef u32_t sys_prot_t;
u32_t dns_lookup_external_hosts_file(const char *name);
#define LWIP_RAND() ((u32_t)rand())
#endif /* __ARCH_CC_H__ */