mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 13:23:59 +02:00
- cast to unsigned int for all calls to srand
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user