File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/test/java/org/openapitools/client/api Expand file tree Collapse file tree 1 file changed +4
-2
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 ;
1718
1819import static org .hamcrest .MatcherAssert .assertThat ;
1920import static org .hamcrest .CoreMatchers .instanceOf ;
@@ -69,9 +70,10 @@ public void successfulMfaVerifyCodeRequest() throws ApiException {
6970 BigDecimal expirationTime = new BigDecimal (3 );
7071
7172 // Generate a random TN for the setTo - otherwise we get heavily rate limited
72- Integer minTn = 1111111111 ;
73+ Long minTn = 1111111111 ;
7374 Long maxTn = 9999999999L ;
74- Integer random_int = (int ) Math .floor (Math .random () * (maxTn - minTn + 1 ) + minTn );
75+ Random random = new Random (System .currentTimeMillis ());
76+ Long random_int = random .nextLong (maxTn - minTn ) + minTn ;
7577
7678 VerifyCodeRequest request = new VerifyCodeRequest ();
7779 request .setTo ("+1" + random_int .toString ());
You can’t perform that action at this time.
0 commit comments