diff options
Diffstat (limited to 'vcl/source/window/debugevent.cxx')
-rw-r--r-- | vcl/source/window/debugevent.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/debugevent.cxx b/vcl/source/window/debugevent.cxx index cc4a86552448..b2b755303763 100644 --- a/vcl/source/window/debugevent.cxx +++ b/vcl/source/window/debugevent.cxx @@ -7,6 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <comphelper/random.hxx> #include <rtl/math.hxx> #include <rtl/string.hxx> #include <tools/time.hxx> @@ -29,7 +30,7 @@ DebugEventInjector::DebugEventInjector( sal_uInt32 nMaxEvents) : static double getRandom() { - return (double)rand() / RAND_MAX; + return comphelper::rng::uniform_real_distribution(); } vcl::Window *DebugEventInjector::ChooseWindow() |