* su_uniqueid.c: Solaris misdefines PTHREAD_ONCE_INIT
Ignore-this: 9fe2247164d572901ed4a30b009353db
Solaris defines pthread_once_t as a struct containing an array. The
initializer PTHREAD_ONCE_INIT needs two levels of brackets it but only has
one. Original patch from Mike Jerris <mike@jerris.com>.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13387 d0543943-73ff-0310-b7d9-9358b9ac24b2
* su_uniqueid.c: srand() must be called per-thread on windows
Ignore-this: ee98b86faadc4a39186ba4991b073c40
Mon Mar 23 12:41:53 CDT 2009 Pekka Pessi <first.last@nokia.com>
* su_uniqueid.c: simple threadsafe implementation
Ignore-this: b3597fb6032b79a61b63f004f121188b
Using /dev/urandom where available, simple 64-bit prng elsewhere.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12756 d0543943-73ff-0310-b7d9-9358b9ac24b2
* su_uniqueid: call initstate() with memory from heap
Ignore-this: af9e58551676e173844d0b77af0e287a
When libsofia-sip-ua.so gets unloaded, its data segment gets unloaded, but
random() still wants to use the memory.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11956 d0543943-73ff-0310-b7d9-9358b9ac24b2