Hi I have made this code for my project.
uniqid().date('ymdhis').rand();
How unique is this?
Is it unique enough to prevent any possible collisions?
Even for big sites with astronomical number of daily file submissions?
Or should I add more functions?
(I don’t want to because the output is already quite long.)
Thanks.
Depending on what language you are using (i assume it is php)
it is more then enough.
uniqid() is a command that generates a id based on a timestamp, making sure that it won’t output a string twice.
so only the
uniqid()would already suffice