Created
August 8, 2016 17:51
-
-
Save abderraouf-adjal/dfcf6ea78fe0c05e56dbbe1f5dd5419f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make_token: | |
$token = mcrypt_create_iv(20, MCRYPT_DEV_URANDOM); | |
if ($token === FALSE) { | |
goto make_token; | |
} | |
$token = bin2hex($token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment