Remove redundant statement

This commit is contained in:
Bond_009 2021-01-26 20:28:35 +01:00
parent 80e22d9670
commit bf4829a38c
1 changed files with 1 additions and 2 deletions

View File

@ -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;