summaryrefslogtreecommitdiff
path: root/slideshow/source/inc/tools.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/inc/tools.hxx')
-rw-r--r--slideshow/source/inc/tools.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/inc/tools.hxx b/slideshow/source/inc/tools.hxx
index 682530f3bbc0..e1eefd7f1923 100644
--- a/slideshow/source/inc/tools.hxx
+++ b/slideshow/source/inc/tools.hxx
@@ -293,7 +293,7 @@ namespace slideshow
/// Gets a random ordinal [0,n)
inline ::std::size_t getRandomOrdinal( const ::std::size_t n )
{
- return comphelper::rng::uniform_int_distribution(static_cast<size_t>(0), n-1);
+ return comphelper::rng::uniform_size_distribution(0, n-1);
}
/// To work around ternary operator in initializer lists