Explorar el Código

Remove redundant statement

Bond_009 hace 4 años
padre
commit
bf4829a38c
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      MediaBrowser.Common/Extensions/ShuffleExtensions.cs

+ 1 - 2
MediaBrowser.Common/Extensions/ShuffleExtensions.cs

@@ -33,8 +33,7 @@ namespace MediaBrowser.Common.Extensions
             int n = list.Count;
             while (n > 1)
             {
-                n--;
-                int k = rng.Next(n + 1);
+                int k = rng.Next(n--);
                 T value = list[k];
                 list[k] = list[n];
                 list[n] = value;