jeudi 29 septembre 2022

str_pad(mt_rand(1,999999),06,'0',STR_PAD_LEFT Generating similar numbers

 str_pad(mt_rand(1,999999),06,'0',STR_PAD_LEFT

I have had this code snippet on my WordPress site since 8 months ago. The purpose was to assign each user that fills the form (WPForm) a unique user ID. It has always worked well until today when I noticed that four entries have the same ID (One yesterday and Three today). I am running Astra Theme. Does anyone know what the course could be?




Aucun commentaire:

Enregistrer un commentaire