You are here

protected function MatchBase::log in Password Strength 8.2

Calculate entropy.

Parameters

$number:

Return value

float

File

src/MatchBase.php, line 128

Class

MatchBase

Namespace

Drupal\password_strength

Code

protected function log($number) {
  return log($number, 2);
}