diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-10-08 15:40:13 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-10-08 15:40:13 +0200 |
| commit | d05062fec06ecba1049beefffe8d8f521d3e1881 (patch) | |
| tree | 8a90dd591a2bc87cdb4f76b6691590cc2072fc3f /Jellyfin.Api/Controllers/MediaInfoController.cs | |
| parent | 556ef5f157cc1bb3acbc7e1ae3edfa28333914cc (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.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 |
