--- source/core/math/jitter.h 2020-11-05 12:44:31.000000000 +0000 +++ source/core/math/jitter.h 2021-04-29 14:56:54.584106143 +0100 @@ -41,7 +41,7 @@ // C++ variants of C standard header files // C++ standard header files -// (none at the moment) +#include // POV-Ray header files (base module) // POV-Ray header files (core module) @@ -101,8 +101,8 @@ inline void Jitter2d(DBL x, DBL y, DBL& jx, DBL& jy) { - jx = -0.5f + static_cast(rand()) / (static_cast(RAND_MAX/((0.5)-(-0.5f)))); - jy = -0.5f + static_cast(rand()) / (static_cast(RAND_MAX/((0.5)-(-0.5f)))); + jx = -0.5f + static_cast(std::rand()) / (static_cast(RAND_MAX/((0.5)-(-0.5f)))); + jy = -0.5f + static_cast(std::rand()) / (static_cast(RAND_MAX/((0.5)-(-0.5f)))); } /// @}