$uuid = str_replace(".","",uniqid(mt_rand(100000,999999),true)); //基于当前时间微妙数,与mt_rand、uniqid第二个参数设置为true[加盐]混用减少碰撞几率
echo $uuid;
$uuid = str_replace(".","",uniqid(mt_rand(100000,999999),true)); //基于当前时间微妙数,与mt_rand、uniqid第二个参数设置为true[加盐]混用减少碰撞几率
echo $uuid;
转载于:https://www.cnblogs.com/web21/p/6015878.html