mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #916 from samsonasik/random_int_when_possible
using random_int() at PreparedQuery::_prepare()
This commit is contained in:
commit
4add89e17a
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user