* cygtls.cc: Include stdlib.h.
(_cygtls::init_thread): Seed random number generator on a per-thread basis.
This commit is contained in:
parent
c27459e675
commit
2be50cacae
|
@ -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>
|
2010-12-27 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 234.
|
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 234.
|
||||||
|
|
|
@ -10,6 +10,7 @@ details. */
|
||||||
#define USE_SYS_TYPES_FD_SET
|
#define USE_SYS_TYPES_FD_SET
|
||||||
#include "cygtls.h"
|
#include "cygtls.h"
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
#include "fhandler.h"
|
#include "fhandler.h"
|
||||||
#include "dtable.h"
|
#include "dtable.h"
|
||||||
|
@ -93,6 +94,7 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *))
|
||||||
}
|
}
|
||||||
local_clib._current_locale = "C";
|
local_clib._current_locale = "C";
|
||||||
locals.process_logmask = LOG_UPTO (LOG_DEBUG);
|
locals.process_logmask = LOG_UPTO (LOG_DEBUG);
|
||||||
|
srand48 ((long int) &x);
|
||||||
}
|
}
|
||||||
|
|
||||||
thread_id = GetCurrentThreadId ();
|
thread_id = GetCurrentThreadId ();
|
||||||
|
|
Loading…
Reference in New Issue