Skip to content

Commit 0230751

Browse files
PlinerGsantomaggio
andauthored
Switch to Random.Shared (#259)
Co-authored-by: Gabriele Santomaggio <[email protected]>
1 parent 59a1561 commit 0230751

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

RabbitMQ.Stream.Client/StreamSystem.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ public async Task Close()
9797

9898
private async Task MayBeReconnectLocator()
9999
{
100-
var rnd = new Random();
101-
var advId = rnd.Next(0, _clientParameters.Endpoints.Count);
100+
var advId = Random.Shared.Next(0, _clientParameters.Endpoints.Count);
102101

103102
try
104103
{

0 commit comments

Comments
 (0)