|
MediaWiki master
|
A cryptographic random generator class used for generating secret keys. More...
Static Public Member Functions | |
| static | generateHex ( $chars) |
| Generate a run of cryptographically random data and return it in hexadecimal string format. | |
A cryptographic random generator class used for generating secret keys.
This is based in part on Drupal code as well as what we used in our own code prior to introduction of this class.
Definition at line 13 of file MWCryptRand.php.
|
static |
Generate a run of cryptographically random data and return it in hexadecimal string format.
| int | $chars | The number of hex chars of random data to generate |
Definition at line 22 of file MWCryptRand.php.