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

Commit

Permalink
Merge pull request #648 from jadb/patch-1
Browse files Browse the repository at this point in the history
Fix random integer generation, fixes #646
  • Loading branch information
fzaninotto committed Aug 24, 2015
2 parents 02f17be + 1e7c316 commit ee7ae45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Faker/ORM/CakePHP/ColumnTypeGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ public function guessFormat($column, $table)
};
case 'integer':
return function () use ($generator) {
return $generator->randomNumber(10);
return mt_rand(0, intval('2147483647'));
};
case 'biginteger':
return function () use ($generator) {
return $generator->randomNumber(20);
return mt_rand(0, intval('9223372036854775807'));
};
case 'decimal':
case 'float':
Expand Down

0 comments on commit ee7ae45

Please sign in to comment.