API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
Auth_OpenID_CryptUtil::getBytes | ( | $ | num_bytes | ) |
Get the specified number of random bytes.
Attempts to use a cryptographically secure (not predictable) source of randomness if available. If there is no high-entropy randomness source available, it will fail. As a last resort, for non-critical systems, define Auth_OpenID_RAND_SOURCE
as null
, and the code will fall back on a pseudo-random number generator.
int | $num_bytes | The length of the return value |
Références $i.
Référencé par Auth_OpenID_Signatory::createAssociation(), Auth_OpenID_MathLibrary::rand(), et randomString().
Auth_OpenID_CryptUtil::randomString | ( | $ | length, |
$ | population = null |
||
) |
Produce a string of length random bytes, chosen from chrs. If $chrs is null, the resulting string may contain any characters.
integer | $length | The length of the resulting randomly-generated string |
string | $chrs | A string of characters from which to choose to build the new string |
Références $i, $n, et getBytes().