File tree 1 file changed +2
-2
lines changed
tests/Agent/IntegrationTests/ContainerIntegrationTests
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4
4
using System ;
5
5
using System . Collections . Generic ;
6
6
using System . Linq ;
7
+ using System . Security . Cryptography ;
7
8
using System . Text ;
8
9
using NewRelic . Agent . ContainerIntegrationTests . ContainerFixtures ;
9
10
using NewRelic . Agent . IntegrationTestHelpers ;
@@ -19,7 +20,6 @@ public abstract class LinuxKafkaTest<T> : NewRelicIntegrationTest<T> where T : L
19
20
20
21
internal string _topicName ;
21
22
private readonly T _fixture ;
22
- private readonly static Random _rnd = new ( ) ;
23
23
24
24
protected LinuxKafkaTest ( T fixture , ITestOutputHelper output ) : base ( fixture )
25
25
{
@@ -105,7 +105,7 @@ internal static string GenerateTopic()
105
105
var builder = new StringBuilder ( ) ;
106
106
for ( int i = 0 ; i < TopicNameLength ; i ++ )
107
107
{
108
- var shifter = Convert . ToInt32 ( Math . Floor ( 25 * _rnd . NextDouble ( ) ) ) ;
108
+ var shifter = RandomNumberGenerator . GetInt32 ( 0 , 26 ) ;
109
109
builder . Append ( Convert . ToChar ( shifter + 65 ) ) ;
110
110
}
111
111
You can’t perform that action at this time.
0 commit comments