function _openid_nonce
Same name and namespace in other branches
- 6.x drupal-6.x/modules/openid/openid.inc \_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.
2 calls to _openid_nonce()
- OpenIDFunctionalTestCase::testSignatureValidation in drupal-7.x/
modules/ openid/ openid.test - Tests that openid.signed is verified.
- _openid_test_endpoint_authenticate in drupal-7.x/
modules/ openid/ tests/ openid_test.module - OpenID endpoint; handle "authenticate" requests.
Archivo
- drupal-7.x/
modules/ openid/ openid.inc, line 387 - OpenID utility functions.
Código
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);
}