- updated random seed generation to be more random

This commit is contained in:
Mark Vejvoda
2012-09-27 06:42:57 +00:00
parent 732f5260a1
commit 4e195e10af
7 changed files with 42 additions and 18 deletions

View File

@@ -425,6 +425,10 @@ const string Properties::getRandomKey(const bool realrandom) const{
int max=getPropertyCount();
int randomIndex=-1;
if(realrandom == true){
//srand((unsigned int)time(NULL));
Chrono seed(true);
srand(seed.getCurTicks());
randomIndex=rand()%max;
}
else{