diff --git a/src/Faker/Provider/Internet.php b/src/Faker/Provider/Internet.php index 9e92f1466e..9dde1a5109 100644 --- a/src/Faker/Provider/Internet.php +++ b/src/Faker/Provider/Internet.php @@ -288,7 +288,7 @@ public function slug($nbWords = 6, $variableNbWords = true) */ public function ipv4() { - return long2ip(mt_rand(0, 1) == 0 ? mt_rand(-2147483648, 0) : mt_rand(1, 2147483647)); + return long2ip(mt_rand(0, 1) == 0 ? mt_rand(-2147483648, -2) : mt_rand(16777216, 2147483647)); } /**