/** * Creates new secrets. * * @return array the secrets */ private function createSecrets() { $n = $this->numberOfSecrets; $res = array(); while ($n-- > 0) { $res[] = $this->hashFunction->calculateHash(mt_rand()); } return $res; }