1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Enhancement: Enable random_api_migration fixer

Co-authored-by: Mathias Reker <mathias@reker.dk>

Closes GH-699.
This commit is contained in:
Andreas Möller
2022-09-16 13:51:25 +02:00
committed by GitHub
parent 9752e1b90d
commit 11c5706c39
3 changed files with 7 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ function print_star(): void
function random_bgcolor($min, $max): void
{
echo "style=\"background-color: #" .
sprintf('%02x%02x%02x', rand($min, $max) * 51, rand($min, $max) * 51, rand($min, $max) * 51) .
sprintf('%02x%02x%02x', mt_rand($min, $max) * 51, mt_rand($min, $max) * 51, mt_rand($min, $max) * 51) .
";\"";
}
?>