1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 09:38:06 +01:00

BigInteger/GMP: fix casting error

This commit is contained in:
terrafrost 2017-11-05 12:28:16 -06:00
parent 1041131bb1
commit 5801806d23

View File

@ -484,7 +484,7 @@ class GMP extends Engine
}
if ($min->value != $x->value) {
$x = new self($x - 1);
$x = new self($x->value - 1);
}
return self::randomRangePrime($min, $x);