aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-10-08 16:04:23 +0200
committerGitHub <noreply@github.com>2021-10-08 16:04:23 +0200
commiteea2ba9b681809869d8b3d57e46e9084ba1461f7 (patch)
tree6a36623a028d3edbad8fe2907b93f859599ac5e2 /Emby.Server.Implementations/Dto
parent851a5f3b558f6c15d1c89227e3b2b8c0d632e1c2 (diff)
parentd05062fec06ecba1049beefffe8d8f521d3e1881 (diff)
Merge pull request #6678 from Bond-009/random
Use new Random.Shared instead of creating new instances
Diffstat (limited to 'Emby.Server.Implementations/Dto')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 74400b5128..ad76f3d6d4 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -420,7 +420,7 @@ namespace Emby.Server.Implementations.Dto
// Just return something so that apps that are expecting a value won't think the folders are empty
if (folder is ICollectionFolder || folder is UserView)
{
- return new Random().Next(1, 10);
+ return Random.Shared.Next(1, 10);
}
return folder.GetChildCount(user);