Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Fix deprecated usage of randomNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jun 1, 2014
1 parent 2a29f17 commit 55fe8cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Faker/Provider/Internet.php
Expand Up @@ -176,12 +176,12 @@ public function ipv6()
*/
public static function localIpv4()
{
if (static::randomNumber(0, 1) === 0) {
if (static::numberBetween(0, 1) === 0) {
// 10.x.x.x range
$ip = long2ip(static::randomNumber(167772160, 184549375));
$ip = long2ip(static::numberBetween(167772160, 184549375));
} else {
// 192.168.x.x range
$ip = long2ip(static::randomNumber(3232235520, 3232301055));
$ip = long2ip(static::numberBetween(3232235520, 3232301055));
}

return $ip;
Expand Down
2 changes: 1 addition & 1 deletion src/Faker/Provider/bn_BD/Address.php
Expand Up @@ -48,7 +48,7 @@ public static function state()

public static function streetNumber()
{
return Utils::getBanglaNumber(static::randomNumber(1, 100));
return Utils::getBanglaNumber(static::numberBetween(1, 100));
}

public static function banglaStreetName()
Expand Down
2 changes: 1 addition & 1 deletion src/Faker/Provider/nl_NL/Person.php
Expand Up @@ -248,7 +248,7 @@ class Person extends \Faker\Provider\Person
*/
public function lastName()
{
$determinator = static::randomNumber(0, 3);
$determinator = static::numberBetween(0, 3);
if ($determinator === 0) {
$lastName = static::randomElement(static::$longLastNames);
} elseif ($determinator === 1) {
Expand Down

0 comments on commit 55fe8cc

Please sign in to comment.