Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SortUtils: fix random sorting always being the same after restart

  • Loading branch information...
commit d25a5baf79dd58974b18c9ba8de305cf644259f3 1 parent 00e5187
@Montellese Montellese authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/utils/SortUtils.cpp
3  xbmc/utils/SortUtils.cpp
@@ -20,6 +20,7 @@
#include "SortUtils.h"
#include "URL.h"
+#include "Util.h"
#include "XBDateTime.h"
#include "settings/AdvancedSettings.h"
#include "utils/CharsetConverter.h"
@@ -395,7 +396,7 @@ string ByListeners(SortAttribute attributes, const SortItem &values)
string ByRandom(SortAttribute attributes, const SortItem &values)
CStdString label;
- label.Format("%i", rand());
+ label.Format("%i", CUtil::GetRandomNumber());
return label;
Please sign in to comment.
Something went wrong with that request. Please try again.