freebsd-ports/audio/ncmpcpp/files/patch-src_mpdpp.h
Thomas Zander be19e9ffcc Fix shuffle playback
(random number generator is not initialised properly)

While on it:
Pet portlint

PR:		201645
Submitted by:	yamagi@yamagi.org (maintainer)
MFH:		2015Q3
2015-08-02 14:03:56 +00:00

19 lines
303 B
C++

--- src/mpdpp.h.orig 2015-07-05 02:18:34 UTC
+++ src/mpdpp.h
@@ -23,6 +23,7 @@
#include <cassert>
#include <exception>
+#include <random>
#include <set>
#include <vector>
@@ -277,6 +278,8 @@ private:
std::string m_password;
mpd_tag_type m_searched_field;
+
+ std::mt19937 m_gen;
};
}