mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 00:59:48 +01:00
Remove deprecated method Math_BigInteger::setRandomGenerator().
This commit is contained in:
parent
61b0fe2ddf
commit
7348ab6ef7
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user