Return to mqtt_pub.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / mqtt / src |
version 1.2.2.7, 2012/05/27 10:04:05 | version 1.2.2.8, 2012/05/28 08:24:07 |
---|---|
Line 52 Publish(int sock) | Line 52 Publish(int sock) |
int siz = 0; | int siz = 0; |
u_short mid = 0; | u_short mid = 0; |
#ifdef __NetBSD__ | |
srandom(getpid() ^ time(NULL)); | |
#else | |
srandomdev(); | srandomdev(); |
#endif | |
mid = random() % USHRT_MAX; | mid = random() % USHRT_MAX; |
printf(" > Execute PUBLISH request #%d ... ", mid); | printf(" > Execute PUBLISH request #%d ... ", mid); |