mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 11:20:03 +00: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) {
|
||||
$x = new self($x - 1);
|
||||
$x = new self($x->value - 1);
|
||||
}
|
||||
|
||||
return self::randomRangePrime($min, $x);
|
||||
|
Loading…
Reference in New Issue
Block a user