I have a large amount of traffic and click on an ad at the same time. I need to create a random value to make the value of those clicks and not be duplicated. I tried many random ways but there was still a duplicate problem.
PHP 5
$random=bin2hex(mt_rand());
$clickid=md5($random);
I want clickid is not duplicate when large amount of traffic and click on an ad at the same time.