Change from (int division -> cast) to (cast -> float division)

pull/3249/head
Hanif Bin Ariffin 2020-05-29 11:59:28 -04:00
parent eceb8aeed1
commit 7db6475592
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ TEST_F(utMatrix3x3Test, FromToMatrixTest) {
aiVector3D from, to; aiVector3D from, to;
auto random_ratio = []() -> float { auto random_ratio = []() -> float {
return static_cast<float>(rand() / RAND_MAX); return static_cast<float>(rand()) / static_cast<float>(RAND_MAX);
}; };
for (int i = 0; i < NUM_SAMPLES; ++i) { for (int i = 0; i < NUM_SAMPLES; ++i) {