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:
commit
9fe1a478ad
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user