Add lwip_port_rand() to unix port

This commit is contained in:
Dirk Ziegelmeier
2019-02-02 22:37:18 +01:00
parent cbc80a0920
commit aa4668cc47
2 changed files with 8 additions and 1 deletions

View File

@@ -56,7 +56,8 @@
#define LWIP_ERRNO_STDINCLUDE 1
#endif
#define LWIP_RAND() ((u32_t)rand())
extern unsigned int lwip_port_rand(void);
#define LWIP_RAND() (lwip_port_rand())
/* different handling for unit test, normally not needed */
#ifdef LWIP_NOASSERT_ON_ERROR