samedi 22 avril 2017

PHP "randomize" the rand() function?

Hi everyone I was wondering what could be possible to randomize this code even further :

$serverseed = floor(time() / 5);
srand($serverseed);
$result = rand();
$modulus_result= $result % 100;

this code generates a random integer from 1-100 for 5 secs, I was hoping I could randomize this a bit further so I can protect my website a bit more...




Aucun commentaire:

Enregistrer un commentaire