Logger logs harness seed and test execution keys in hex representation.

This commit is contained in:
Markus Kauppila 2011-07-25 19:33:32 +03:00
parent 279a841b64
commit 46f39ab285
12 changed files with 71 additions and 32 deletions

View file

@ -50,7 +50,7 @@ GenerateExecKey(CRC32_CTX crcContext, char *runSeed, char *suiteName,
utl_crc32Calc(&crcContext, md5Context.digest, sizeof(md5Context.digest), &result);
return result;
return abs(result); // makes sure that the key is positive
}
void
@ -135,7 +135,7 @@ RandomAsciiStringWithMaximumLength(int maxSize)
int counter = 0;
for( ; counter < size; ++counter) {
char character = (char) RandomPositiveIntegerInRange(1, 127);
char character = (char) RandomIntegerInRange(1, 127);
string[counter] = character;
}