From 522f3e501dcc63ad84184d421d85e905a7b7b6a9 Mon Sep 17 00:00:00 2001 From: Denis Portnov Date: Tue, 24 Jul 2012 00:53:28 +0400 Subject: [PATCH] fixed DiffieHellman and Csrf validator --- src/PublicKey/DiffieHellman.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/PublicKey/DiffieHellman.php b/src/PublicKey/DiffieHellman.php index ce26a21..97ce608 100644 --- a/src/PublicKey/DiffieHellman.php +++ b/src/PublicKey/DiffieHellman.php @@ -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 */ @@ -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); } }