MediaWiki fundraising/REL1_35
MWCryptRand Class Reference

Static Public Member Functions

static generateHex ( $chars)
 Generate a run of cryptographically random data and return it in hexadecimal string format.
 

Detailed Description

Definition at line 27 of file MWCryptRand.php.

Member Function Documentation

◆ generateHex()

static MWCryptRand::generateHex ( $chars)
static

Generate a run of cryptographically random data and return it in hexadecimal string format.

Parameters
int$charsThe number of hex chars of random data to generate
Returns
string Hexadecimal random data

Definition at line 36 of file MWCryptRand.php.

Referenced by SpecialPage\checkLoginSecurityLevel(), User\confirmationToken(), MWSaltedPassword\crypt(), Installer\doGenerateKeys(), MediaWiki\Session\SessionManager\generateSessionId(), WikiEditorHooks\getEditingStatsId(), Pingback\getOrCreatePingbackId(), User\getToken(), AuthManagerSpecialPage\handleReauthBeforeExecute(), User\resetTokenFromOption(), BotPassword\save(), and User\setToken().


The documentation for this class was generated from the following file: