You are here

private static function sOAuthRequest::generate_nonce in jQuery social stream 7

Same name and namespace in other branches
  1. 7.2 jquery_social_stream.js.inc \sOAuthRequest::generate_nonce()

util function: current nonce

1 call to sOAuthRequest::generate_nonce()
sOAuthRequest::from_consumer_and_token in ./jquery_social_stream.js.inc
pretty much a helper function to set up the request

File

./jquery_social_stream.js.inc, line 805
JS callbacks.

Class

sOAuthRequest

Code

private static function generate_nonce() {
  $mt = microtime();
  $rand = mt_rand();
  return md5($mt . $rand);

  // md5s look nicer than numbers
}