loggging fixes for language specific info (use english always)

This commit is contained in:
Mark Vejvoda
2013-09-21 20:50:58 +00:00
parent 792ab1b7bc
commit 836e61d5d6
14 changed files with 230 additions and 147 deletions

View File

@@ -74,7 +74,7 @@ int RandomGen::randRange(int min, int max){
// int res = streflop::Random<true, false, float>(min, max); // streflop
//#else
int diff= max-min;
int res= min + static_cast<int>(truncateDecimal<double>(static_cast<double>(diff+1))*RandomGen::rand() / m);
int res= min + static_cast<int>(truncateDecimal<double>(static_cast<double>(diff+1),2)*RandomGen::rand() / m);
//#endif
assert(res>=min && res<=max);
if(res < min || res > max) {