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

Ignore-this: ee98b86faadc4a39186ba4991b073c40

darcs-hash:20090303182335-c21f9-885f83ebd3b1b9ab6d7a306b94f2c0a046b24286.gz
parent c443b754
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment