diff options
author | Max Kellermann <max@duempel.org> | 2013-01-07 21:07:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-07 22:00:57 +0100 |
commit | c6281b2680ec10d31d00869091a0f918041a0554 (patch) | |
tree | f6d7bcb97c393aacd1ff287160ecda3d43aa5e21 /src/Queue.hxx | |
parent | 5b8b7d14127a5ea9ce8f0301c92267f86eeab85a (diff) | |
download | mpd-c6281b2680ec10d31d00869091a0f918041a0554.tar.gz mpd-c6281b2680ec10d31d00869091a0f918041a0554.tar.xz mpd-c6281b2680ec10d31d00869091a0f918041a0554.zip |
Queue: use C++ random instead of GLib's GRand
Diffstat (limited to 'src/Queue.hxx')
-rw-r--r-- | src/Queue.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <glib.h> @@ -101,7 +102,7 @@ struct queue { bool random; /** random number generator for shuffle and random mode */ - GRand *rand; + LazyRandomEngine rand; queue(unsigned max_length); |