diff options
author | Werner Koch <wk@gnupg.org> | 2014-01-09 19:14:09 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-01-24 21:53:34 +0100 |
commit | 8e352780fd0e2fbc8f4c4971aae188d62df24d0a (patch) | |
tree | a934405f6bf0033b18adfe4c2d152adb5b4189e3 | |
parent | 2e4c5963119dc02cac7b8f0dfb46572c43d1ebe7 (diff) | |
download | libgpg-error-8e352780fd0e2fbc8f4c4971aae188d62df24d0a.tar.gz |
tests: Call srand for each thread under Windows.
* tests/t-lock.c (accountant_thread) [W32]: Call srand.
-rw-r--r-- | tests/t-lock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/t-lock.c b/tests/t-lock.c index 91923fb..190d63e 100644 --- a/tests/t-lock.c +++ b/tests/t-lock.c @@ -164,6 +164,9 @@ accountant_thread (void *arg) (void)arg; +#ifdef _WIN32 + srand (time(NULL)*getpid()); /* Windows needs it per thread. */ +#endif for (i = 0; i < N_TRANSACTIONS; i++) { rc = gpgrt_lock_lock (&accounts_lock); |