* cygtls.cc: Include stdlib.h.

(_cygtls::init_thread): Seed random number generator on a per-thread basis.
This commit is contained in:
Christopher Faylor 2010-12-29 06:33:30 +00:00
parent c27459e675
commit 2be50cacae
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-12-29 Christopher Faylor <me+cygwin@cgf.cx>
* cygtls.cc: Include stdlib.h.
(_cygtls::init_thread): Seed random number generator on a per-thread
basis.
2010-12-27 Christopher Faylor <me+cygwin@cgf.cx>
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 234.

View File

@ -10,6 +10,7 @@ details. */
#define USE_SYS_TYPES_FD_SET
#include "cygtls.h"
#include <syslog.h>
#include <stdlib.h>
#include "path.h"
#include "fhandler.h"
#include "dtable.h"
@ -93,6 +94,7 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *))
}
local_clib._current_locale = "C";
locals.process_logmask = LOG_UPTO (LOG_DEBUG);
srand48 ((long int) &x);
}
thread_id = GetCurrentThreadId ();