php always giving the same hashed string when using random variables and timestamp -
i using following random code can used reset password getting same value $encrypt surely rand , timestamp should make different each time?
$randnumb = rand(1000000000000,999999999999); $timestamp = time(); $encrypt = md5($row['userid']+$timestamp+$randnumb);
use . concatinate operator instead of + operator
Comments
Post a Comment