@@ 17-18 (lines=2) @@ | ||
14 | $len = $len > ($maxlen - 1) ? ($maxlen - 1) : $len; |
|
15 | while ($len < $maxlen && pow($base, $len) < $num) |
|
16 | $len++; |
|
17 | if ($len >= $maxlen) |
|
18 | throw new Exception($num . " out of range (max " . pow($base, $maxlen - 1) . ")"); |
|
19 | $ceil = pow($base, $len); |
|
20 | $prime = $gp[$len]; |
|
21 | $dechash = ($num * $prime) % $ceil; |
@@ 16-17 (lines=2) @@ | ||
13 | $len = $len > ($maxlen - 1) ? ($maxlen - 1) : $len; |
|
14 | while ($len < $maxlen && pow($base, $len) < $num) |
|
15 | $len++; |
|
16 | if ($len >= $maxlen) |
|
17 | throw new Exception($num." out of range (max ".pow($base, $maxlen - 1).")"); |
|
18 | $ceil = pow($base, $len); |
|
19 | $prime = $gp[$len]; |
|
20 | $dechash = ($num * $prime) % $ceil; |