function _openid_nonce
_openid_nonce()
Return a nonce value - formatted per OpenID spec.
NOTE: This nonce is not cryptographically secure and only suitable for use by the test framework.
File
- modules/openid/openid.inc, line 392
- OpenID utility functions.
Code
function _openid_nonce() { // YYYY-MM-DDThh:mm:ssZ, plus some optional extra unique characters. return gmdate('Y-m-d\TH:i:s\Z') . chr(mt_rand(0, 25) + 65) . chr(mt_rand(0, 25) + 65) . chr(mt_rand(0, 25) + 65) . chr(mt_rand(0, 25) + 65); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.inc/function/_openid_nonce/7.x