Tue Mar 3 12:23:35 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>

* su_uniqueid.c: srand() must be called per-thread on windows



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12400 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-03-03 22:02:55 +00:00
parent 83e087e162
commit eb218a9656
2 changed files with 7 additions and 2 deletions

View File

@ -1 +1 @@
Tue Mar 3 16:01:07 CST 2009
Tue Mar 3 16:01:38 CST 2009

View File

@ -73,8 +73,13 @@ int _getpid(void);
#include "sofia-sip/su_time.h"
#include "sofia-sip/su_uniqueid.h"
#ifdef SU_HAVE_WINSOCK
#define PERTHREAD __declspec(thread)
#else
#define PERTHREAD
#endif
/* For random number generator */
static int initialized = 0;
static PERTHREAD int initialized = 0;
static void init(void);
static void init_node(void);