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

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -