better random algorithm

This commit is contained in:
Claude 2012-04-19 09:34:33 +02:00
parent 0257da7e35
commit b9406b2dd7

View File

@ -73,7 +73,7 @@ class Pastes extends CI_Model
}
else
{
$data['pid'] = rand(10000, 99999999);
$data['pid'] = mt_rand(10000, 99999999);
}
$this->db->select('id');
$this->db->where('pid', $data['pid']);