samedi 8 décembre 2018

When is mt_rand seeded?

At what moment is the seed for mt_rand selected? According to several sources php should reseed this PRNG in every new process. This works perfectly on my windows machine. On the linux machine however a new seed is used with every request. I checked that the requests are running in the same process (using getmypid) and they do. Am I missing something?




Aucun commentaire:

Enregistrer un commentaire