1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 00:09:59 +01:00

Merge pull request #107 from goatherd/patch-1

Word-size dependency for `Faker\Provider\Base::numberBetween()`.
This commit is contained in:
Francois Zaninotto 2013-02-05 23:43:50 -08:00
commit 9fe1a478ad

View File

@ -74,7 +74,7 @@ class Base
*/
public static function numberBetween($from = null, $to = null)
{
return mt_rand($from ?: 0, $to ?: PHP_INT_MAX);
return mt_rand($from ?: 0, $to ?: 2147483647); // 32bit compat default
}
/**