[feature/elliptic-curve] Do not instantiate unnecessary $x instance.

This commit is contained in:
Andreas Fischer 2013-06-07 00:47:59 +02:00
parent 97cf60900d
commit 7253e77386

View File

@ -1197,8 +1197,7 @@ class Net_SSH2 {
$max = $one->bitwise_leftShift(16 * $keyLength)->subtract($one); // 2 * 8 * $keyLength
$g = new Math_BigInteger(2);
$x = new Math_BigInteger();
$x = $x->random($one, $max);
$x = $one->random($one, $max);
$e = $g->modPow($x, $p);
$eBytes = $e->toBytes(true);