mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
better random algorithm
This commit is contained in:
parent
0257da7e35
commit
b9406b2dd7
@ -73,7 +73,7 @@ class Pastes extends CI_Model
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$data['pid'] = rand(10000, 99999999);
|
$data['pid'] = mt_rand(10000, 99999999);
|
||||||
}
|
}
|
||||||
$this->db->select('id');
|
$this->db->select('id');
|
||||||
$this->db->where('pid', $data['pid']);
|
$this->db->where('pid', $data['pid']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user