diff options
Diffstat (limited to 'src/gvcore/slideshow.cpp')
-rw-r--r-- | src/gvcore/slideshow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gvcore/slideshow.cpp b/src/gvcore/slideshow.cpp index e8867ad..d6a4799 100644 --- a/src/gvcore/slideshow.cpp +++ b/src/gvcore/slideshow.cpp @@ -20,6 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // STL #include <algorithm> +#include <random> // TQt #include <tqtimer.h> @@ -82,7 +83,8 @@ void SlideShow::start(const KURL::List& urls) { mURLs.resize(urls.size()); tqCopy(urls.begin(), urls.end(), mURLs.begin()); if (SlideShowConfig::random()) { - std::random_shuffle(mURLs.begin(), mURLs.end()); + std::random_device rd; + std::shuffle(mURLs.begin(), mURLs.end(), std::mt19937(rd())); } mStartIt=tqFind(mURLs.begin(), mURLs.end(), mDocument->url()); |