Merge pull request #916 from samsonasik/random_int_when_possible

using random_int() at PreparedQuery::_prepare()
This commit is contained in:
Lonnie Ezell 2018-01-30 23:18:53 -06:00 committed by GitHub
commit 4add89e17a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class PreparedQuery extends BasePreparedQuery implements PreparedQueryInterface
*/
public function _prepare(string $sql, array $options = [])
{
$this->name = mt_rand(1, 10000000000000000);
$this->name = random_int(1, 10000000000000000);
$sql = $this->parameterize($sql);