mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +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) {
|
||||
$x = new self($x - 1);
|
||||
$x = new self($x->value - 1);
|
||||
}
|
||||
|
||||
return self::randomRangePrime($min, $x);
|
||||
|
Loading…
Reference in New Issue
Block a user