_openid_nonce
- Versions
- 6 – 7
_openid_nonce()
Return a nonce value - formatted per OpenID spec.
Code
modules/openid/openid.inc, line 182
<?php
function _openid_nonce() {
// YYYY-MM-DDThh:mm:ssTZD UTC, plus some optional extra unique chars
return gmstrftime('%Y-%m-%dT%H:%M:%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);
}
?>Login or register to post comments 