aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-10-08 15:40:13 +0200
committerBond_009 <bond.009@outlook.com>2021-10-08 15:40:13 +0200
commitd05062fec06ecba1049beefffe8d8f521d3e1881 (patch)
tree8a90dd591a2bc87cdb4f76b6691590cc2072fc3f /Emby.Server.Implementations/Dto
parent556ef5f157cc1bb3acbc7e1ae3edfa28333914cc (diff)
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 74400b512..ad76f3d6d 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);