diff options
-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); |