aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/MediaInfoController.cs
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 /Jellyfin.Api/Controllers/MediaInfoController.cs
parent851a5f3b558f6c15d1c89227e3b2b8c0d632e1c2 (diff)
parentd05062fec06ecba1049beefffe8d8f521d3e1881 (diff)
Merge pull request #6678 from Bond-009/random
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