- cast to unsigned int for all calls to srand

This commit is contained in:
Mark Vejvoda
2012-10-30 17:12:04 +00:00
parent 69b5f9b39c
commit 5c15a0e9f4
8 changed files with 14 additions and 21 deletions

View File

@@ -734,7 +734,7 @@ void writeCachedFileCRCValue(string crcCacheFile, uint32 &crcValue) {
if(fp != NULL) {
//RandomGen random;
//int offset = random.randRange(5, 15);
srand((unsigned long)time(NULL) + (unsigned long)crcCacheFile.length());
srand((unsigned int)time(NULL) + (unsigned long)crcCacheFile.length());
int offset = rand() % 15;
if(offset == 0) {
offset = 3;