git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12073
d0543943-73ff-0310-b7d9-
9358b9ac24b2
#if HAVE_INITSTATE
/* Allow libsofia-sip-ua.so to unload. */
- uint32_t *seed = calloc(32, sizeof *seed);
+ uint32_t *seed = calloc(32, sizeof(uint32_t));
#else
static uint32_t seed[32] = { 0 };
#endif
}
#if HAVE_INITSTATE
- initstate(seed[0] ^ seed[1], (char *)&seed, sizeof(seed));
+ initstate(seed[0] ^ seed[1], (char *)seed, 32 * sizeof(uint32_t));
#else
srand(seed[0] ^ seed[1]);
#endif
AC_FUNC_ALLOCA
-AC_CHECK_FUNCS([gettimeofday strerror random tcsetattr flock \
+AC_CHECK_FUNCS([gettimeofday strerror random tcsetattr initstate flock \
socketpair gethostname gethostbyname getipnodebyname \
poll epoll_create kqueue select if_nameindex \
signal alarm \