Skip to content

Commit b38430e

Browse files
committed
Removed another usage of mt_rand()
1 parent 998659e commit b38430e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This renders a page that prints a lucky (random) number::
2626
*/
2727
public function numberAction()
2828
{
29-
$number = mt_rand(0, 100);
29+
$number = random_int(0, 100);
3030

3131
return new Response(
3232
'<html><body>Lucky number: '.$number.'</body></html>'

0 commit comments

Comments
 (0)