mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 17:52:59 +01:00
BigInteger/GMP: fix casting error
This commit is contained in:
parent
1041131bb1
commit
5801806d23
@ -484,7 +484,7 @@ class GMP extends Engine
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($min->value != $x->value) {
|
if ($min->value != $x->value) {
|
||||||
$x = new self($x - 1);
|
$x = new self($x->value - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::randomRangePrime($min, $x);
|
return self::randomRangePrime($min, $x);
|
||||||
|
Loading…
Reference in New Issue
Block a user