Skip to content

Commit 3c2a729

Browse files
Manually backport #1207
(cherry picked from commit 1b94cb2)
1 parent fa9d37d commit 3c2a729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/RabbitMQ.Client/client/api/DefaultEndpointResolver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public DefaultEndpointResolver(IEnumerable<AmqpTcpEndpoint> tcpEndpoints)
4848
public IEnumerable<AmqpTcpEndpoint> All()
4949
{
5050
#if NET6_0_OR_GREATER
51-
return _endpoints.OrderBy(item => Random.Shared.Next());
51+
return _endpoints.OrderBy(item => Random.Shared.Next());
5252
#else
53-
return _endpoints.OrderBy(item => _rnd.Next());
53+
return _endpoints.OrderBy(item => _rnd.Next());
5454
#endif
5555
}
5656
}

0 commit comments

Comments
 (0)