From c6281b2680ec10d31d00869091a0f918041a0554 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 7 Jan 2013 21:07:30 +0100 Subject: Queue: use C++ random instead of GLib's GRand --- src/Queue.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Queue.hxx') diff --git a/src/Queue.hxx b/src/Queue.hxx index b887810b0..00af9b666 100644 --- a/src/Queue.hxx +++ b/src/Queue.hxx @@ -21,6 +21,7 @@ #define MPD_QUEUE_HXX #include "gcc.h" +#include "util/LazyRandomEngine.hxx" #include @@ -101,7 +102,7 @@ struct queue { bool random; /** random number generator for shuffle and random mode */ - GRand *rand; + LazyRandomEngine rand; queue(unsigned max_length); -- cgit v1.2.3