Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
fixed DiffieHellman and Csrf validator
Browse files Browse the repository at this point in the history
  • Loading branch information
denixport committed Jul 23, 2012
1 parent 0100360 commit 522f3e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PublicKey/DiffieHellman.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class DiffieHellman
private $privateKey = null;

/**
* BigInteger support object courtesy of Zend\Math\Math
* BigInteger support object courtesy of Zend\Math
*
* @var \Zend\Math\BigInteger\Adapter\AdapterInterface
*/
Expand Down Expand Up @@ -438,7 +438,6 @@ protected function convert($number, $inputFormat = self::FORMAT_NUMBER,
*/
protected function generatePrivateKey()
{
$rand = Math\Math::randBytes(strlen($this->getPrime()), true);
return $rand;
return Math\Rand::getBytes(strlen($this->getPrime()), true);
}
}

0 comments on commit 522f3e5

Please sign in to comment.