diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-10-08 16:04:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-08 16:04:23 +0200 |
| commit | eea2ba9b681809869d8b3d57e46e9084ba1461f7 (patch) | |
| tree | 6a36623a028d3edbad8fe2907b93f859599ac5e2 /Jellyfin.Api/Controllers/MediaInfoController.cs | |
| parent | 851a5f3b558f6c15d1c89227e3b2b8c0d632e1c2 (diff) | |
| parent | d05062fec06ecba1049beefffe8d8f521d3e1881 (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.cs | 2 |
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 |
