Remove deprecated method Math_BigInteger::setRandomGenerator().

This commit is contained in:
Andreas Fischer 2014-04-13 00:46:03 +02:00
parent 61b0fe2ddf
commit 7348ab6ef7

View File

@ -198,7 +198,6 @@ class Math_BigInteger
/** /**
* Random number generator function * Random number generator function
* *
* @see setRandomGenerator()
* @access private * @access private
*/ */
var $generator = 'mt_rand'; var $generator = 'mt_rand';
@ -812,7 +811,6 @@ class Math_BigInteger
$temp = new Math_BigInteger($this->hex, -16); $temp = new Math_BigInteger($this->hex, -16);
$this->value = $temp->value; $this->value = $temp->value;
$this->is_negative = $temp->is_negative; $this->is_negative = $temp->is_negative;
$this->setRandomGenerator($this->generator);
if ($this->precision > 0) { if ($this->precision > 0) {
// recalculate $this->bitmask // recalculate $this->bitmask
$this->setPrecision($this->precision); $this->setPrecision($this->precision);
@ -3038,18 +3036,6 @@ class Math_BigInteger
return $this->bitwise_leftRotate(-$shift); 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 * Generates a random BigInteger
* *