diff --git a/Blades of Exile/tools/mathutil.cpp b/Blades of Exile/tools/mathutil.cpp index fc732792..9e809e40 100644 --- a/Blades of Exile/tools/mathutil.cpp +++ b/Blades of Exile/tools/mathutil.cpp @@ -18,7 +18,7 @@ short get_ran (short times,short min,short max){ if(max < min) max = min; for (i = 1; i < times + 1; i++) { - srand(GetTickCount()); + srand(GetTickCount() + rand()); store = rand(); to_ret += min + (store % (max - min + 1));//min + (((store + 32767) * (max - min + 1)) / 65536); }