Skip to content

Instantly share code, notes, and snippets.

@edwinschaap
Created March 16, 2012 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwinschaap/2050320 to your computer and use it in GitHub Desktop.
Save edwinschaap/2050320 to your computer and use it in GitHub Desktop.
generate access token
<?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