aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/MediaInfoController.cs
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 /Jellyfin.Api/Controllers/MediaInfoController.cs
parent556ef5f157cc1bb3acbc7e1ae3edfa28333914cc (diff)
Use new Random.Shared instead of creating new instances
Diffstat (limited to 'Jellyfin.Api/Controllers/MediaInfoController.cs')
-rw-r--r--Jellyfin.Api/Controllers/MediaInfoController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/MediaInfoController.cs b/Jellyfin.Api/Controllers/MediaInfoController.cs
index 96ef2d678..b422eb78c 100644
--- a/Jellyfin.Api/Controllers/MediaInfoController.cs
+++ b/Jellyfin.Api/Controllers/MediaInfoController.cs
@@ -316,7 +316,7 @@ namespace Jellyfin.Api.Controllers
byte[] buffer = ArrayPool<byte>.Shared.Rent(size);
try
{
- new Random().NextBytes(buffer);
+ Random.Shared.NextBytes(buffer);
return File(buffer, MediaTypeNames.Application.Octet);
}
finally