From 7348ab6ef7df4a808c5a7525d8ce8f78dc14372d Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Sun, 13 Apr 2014 00:46:03 +0200 Subject: [PATCH] Remove deprecated method Math_BigInteger::setRandomGenerator(). --- phpseclib/Math/BigInteger.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index be1f948f..61bef126 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -198,7 +198,6 @@ class Math_BigInteger /** * Random number generator function * - * @see setRandomGenerator() * @access private */ var $generator = 'mt_rand'; @@ -812,7 +811,6 @@ class Math_BigInteger $temp = new Math_BigInteger($this->hex, -16); $this->value = $temp->value; $this->is_negative = $temp->is_negative; - $this->setRandomGenerator($this->generator); if ($this->precision > 0) { // recalculate $this->bitmask $this->setPrecision($this->precision); @@ -3038,18 +3036,6 @@ class Math_BigInteger return $this->bitwise_leftRotate(-$shift); } - /** - * Set random number generator function - * - * This function is deprecated. - * - * @param String $generator - * @access public - */ - function setRandomGenerator($generator) - { - } - /** * Generates a random BigInteger *