File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/org/openapitools/client/api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414import org .junit .jupiter .api .Test ;
1515
1616import java .math .BigDecimal ;
17- import java .util .Random ;
17+ import java .util .concurrent . ThreadLocalRandom ;
1818
1919import static org .hamcrest .MatcherAssert .assertThat ;
2020import static org .hamcrest .CoreMatchers .instanceOf ;
@@ -72,8 +72,8 @@ public void successfulMfaVerifyCodeRequest() throws ApiException {
7272 // Generate a random TN for the setTo - otherwise we get heavily rate limited
7373 Long minTn = 1111111111L ;
7474 Long maxTn = 9999999999L ;
75- Random random = new Random ( System . currentTimeMillis ()) ;
76- Long random_int = random . nextLong ( maxTn - minTn ) + minTn ;
75+ Long random_int = ThreadLocalRandom . current (). nextLong ( maxTn - minTn ) + minTn ;
76+ System . out . println ( random_int ) ;
7777
7878 VerifyCodeRequest request = new VerifyCodeRequest ();
7979 request .setTo ("+1" + random_int .toString ());
You can’t perform that action at this time.
0 commit comments