Created
March 16, 2012 14:33
-
-
Save edwinschaap/2050320 to your computer and use it in GitHub Desktop.
generate access token
This file contains 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
<?php | |
protected function genAccessToken() { | |
return md5(base64_encode(pack('N6', mt_rand(), mt_rand(), mt_rand(), mt_rand(), mt_rand(), uniqid()))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment