Insecure Randomness: Custom Algorithms
Creating your own randomness algorithm is generally not recommended. Below are some examples found on GitHub or StackOverflow that are sometimes used in production, but may not be reliable or secure.
$token = md5($emailId).rand(10,9999);$token = md5(time()+123456789 % rand(4000, 55000000));
Comments
No comments yet.