forked from Mirrors/freeswitch
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:
parent
83e087e162
commit
eb218a9656
@ -1 +1 @@
|
||||
Tue Mar 3 16:01:07 CST 2009
|
||||
Tue Mar 3 16:01:38 CST 2009
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user