diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-01-26 20:28:35 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-01-26 20:28:35 +0100 |
| commit | bf4829a38ce6b393c2bbab258c4a7ebe5ee33aba (patch) | |
| tree | 6d50eeabb5baff1db0898d6e447cefcad72f932d | |
| parent | 80e22d9670f3ea8b722e1e57bc73529a5c652b25 (diff) | |
Remove redundant statement
| -rw-r--r-- | MediaBrowser.Common/Extensions/ShuffleExtensions.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.Common/Extensions/ShuffleExtensions.cs b/MediaBrowser.Common/Extensions/ShuffleExtensions.cs index 459bec110..6f0ea9bd5 100644 --- a/MediaBrowser.Common/Extensions/ShuffleExtensions.cs +++ b/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; |
