We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa9d37d commit 3c2a729Copy full SHA for 3c2a729
projects/RabbitMQ.Client/client/api/DefaultEndpointResolver.cs
@@ -48,9 +48,9 @@ public DefaultEndpointResolver(IEnumerable<AmqpTcpEndpoint> tcpEndpoints)
48
public IEnumerable<AmqpTcpEndpoint> All()
49
{
50
#if NET6_0_OR_GREATER
51
- return _endpoints.OrderBy(item => Random.Shared.Next());
+ return _endpoints.OrderBy(item => Random.Shared.Next());
52
#else
53
- return _endpoints.OrderBy(item => _rnd.Next());
+ return _endpoints.OrderBy(item => _rnd.Next());
54
#endif
55
}
56
0 commit comments