Skip to content

Commit 8cf9145

Browse files
committed
refactor: replace rand with random_int
1 parent ae952f8 commit 8cf9145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Constraints/LongArraysTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testLongNumberArray(): void
5555

5656
$tmp = new \stdClass();
5757
$tmp->p_array = array_map(function ($i) {
58-
return rand(1, 1000) / 1000.0;
58+
return random_int(1, 1000) / 1000.0;
5959
}, range(1, 100000));
6060
$input = json_encode($tmp);
6161

0 commit comments

Comments
 (0)