`uniqid` is very not good for random. IMHO, something link `uniqid(mt_rant(), true)` has more entropy.
But why use a random value here ?