diff --git a/README.md b/README.md index 9fcf9eb..a35b758 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ This library has 4 prime factorization modules (ordered by speed, huge semiprime * wolfram - A [wolfram alpha](https://wolframalpha.com) module (usually takes around 2.1294961380959 seconds calculated using 100 huge semiprimes) -* native - A [native PHP lopatin](https://github.com/LonamiWebs/Telethon/blob/master/telethon/crypto/factorizator.py) module (usually takes around 2.5698633241653 seconds calculated using 100 huge semiprimes, may sometimes be faster than the wolfram module) +* native - A [native PHP lopatin](https://github.com/LonamiWebs/Telethon/blob/master/telethon/crypto/factorizator.py) module (usually takes around 2.5698633241653 seconds calculated using 100 huge semiprimes, may sometimes be faster than the wolfram module: for example on HHVM native factorization usually takes 0.1 seconds) These modules can be used either in the single variant, which returns only one factor (useful for semiprime factorization), or the full methods, that return an array with all of the factors. diff --git a/tests/StructTools.php b/tests/StructTools.php index 3a107d2..b6cdc52 100644 --- a/tests/StructTools.php +++ b/tests/StructTools.php @@ -101,11 +101,6 @@ class StructTools 'H' => strlen(pack($this->NATIVE_FORMATS['H'], 700)), 'i' => strlen(pack($this->NATIVE_FORMATS['i'], 1)), 'I' => strlen(pack($this->NATIVE_FORMATS['I'], 1)), - 'l' => strlen(pack($this->NATIVE_FORMATS['l'], -700)), - 'L' => strlen(pack($this->NATIVE_FORMATS['L'], 700)), - 'q' => $this->IS64BIT ? strlen(pack($this->NATIVE_FORMATS['q'], 700)) : 8, - 'Q' => $this->IS64BIT ? strlen(pack($this->NATIVE_FORMATS['Q'], 700)) : 8, - // Floating point formats 'f' => strlen(pack($this->NATIVE_FORMATS['f'], 2.0)), 'd' => strlen(pack($this->NATIVE_FORMATS['d'], 2.0)), diff --git a/tests/testing.php b/tests/testing.php index f472e00..72c1e0c 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -83,6 +83,7 @@ function gen_payload() return chr(10).str_repeat(chr(0), 8).\danog\PHP\Struct::pack(' 0, 'python_alt' => 0, 'wolfram' => 0, 'native' => 0]; $tg = fsockopen('tcp://149.154.167.40:443');