34 return MediaWikiServices::getInstance()->getCryptRand();
60 public static function generate( $bytes, $forceStrong =
false ) {
76 public static function generateHex( $chars, $forceStrong =
false ) {
static wasStrong()
Return a boolean indicating whether or not the source used for cryptographic random bytes generation ...
static generate( $bytes, $forceStrong=false)
Generate a run of (ideally) cryptographically random data and return it in raw binary form.
static generateHex( $chars, $forceStrong=false)
Generate a run of (ideally) cryptographically random data and return it in hexadecimal string format.