Commit 02f7d73e authored by Julien Wadel's avatar Julien Wadel
Browse files

Fix : reduce probability to have same rand() between processes

parent 74021cc7
......@@ -860,7 +860,8 @@ static CU_ErrorCode run_single_suite(CU_pSuite pSuite, CU_pRunSummary pRunSummar
pSuite->uiNumberOfTestsFailed = 0;
pSuite->uiNumberOfTestsSuccess = 0;
srand((unsigned int)time(0));// random based on seed time because it may interfer with other process (=same number). Keep the seed for whole suite
/* run handler for suite start, if any */
if (NULL != f_pSuiteStartMessageHandler) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment