Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Handle disabled classes1.1.2 | Scott | 2015-12-09 | 1 | -7/+15 | |
| | ||||||
* | Use stream_set_chunk_size() to prevent reading 8192 bytes from /dev/urandom ↵1.1.1 | Scott | 2015-11-30 | 1 | -10/+15 | |
| | | | | on Linux | |||||
* | Don't use OpenSSL on Windows on PHP < 5.4.11.1.0 | Scott | 2015-11-09 | 1 | -2/+2 | |
| | | | This change is being made due to inconsistent and unpredictable performance issues on earlier versions of PHP on Windows. | |||||
* | Use the same exception messages as PHP 7 | Scott | 2015-11-09 | 5 | -5/+5 | |
| | ||||||
* | Update .travis.yml | Scott | 2015-10-30 | 1 | -1/+1 | |
| | ||||||
* | Update composer.json | Scott | 2015-10-30 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #75 from ircmaxell/test_refactor | Scott | 2015-10-30 | 5 | -123/+95 | |
|\ | | | | | Refactor tests to use phpunit properly with standardized bootstrappin… | |||||
| * | Refactor tests to use phpunit properly with standardized bootstrapping and ↵ | Anthony Ferrara | 2015-10-30 | 5 | -123/+95 | |
|/ | | | | maanging phpunit via composer | |||||
* | Don't use OpenSSL in PHP 5.3.0 - 5.3.3 on Windows1.0.10 | Scott | 2015-10-23 | 1 | -1/+9 | |
| | ||||||
* | unset -> null | Scott | 2015-10-23 | 1 | -13/+13 | |
| | ||||||
* | Merge pull request #70 from oittaa/patch-9 | Scott | 2015-10-22 | 1 | -3/+4 | |
|\ | | | | | random.php: unset $RandomCompatCOMtest | |||||
| * | renamed renamed $version to $RandomCompatversion | oittaa | 2015-10-21 | 1 | -3/+3 | |
| | | | | | | $version seems to be quite common variable name and we might accidentally overwrite and unset it. | |||||
| * | random.php: unset $RandomCompatCOMtest | oittaa | 2015-10-21 | 1 | -0/+1 | |
|/ | ||||||
* | Merge origin/master1.0.9 | Scott | 2015-10-20 | 2 | -9/+2 | |
|\ | ||||||
| * | Merge pull request #66 from nicolas-grekas/no-throwable | Scott | 2015-10-19 | 2 | -9/+2 | |
| |\ | | | | | | | Remove Throwable polyfill | |||||
| | * | Remove Throwable polyfill | Nicolas Grekas | 2015-10-19 | 2 | -9/+2 | |
| |/ | ||||||
* | | Minor style consistency boyscouting | Scott | 2015-10-20 | 1 | -6/+6 | |
| | | ||||||
* | | Silence mcrypt_create_iv() failures caused by proc_open | Scott | 2015-10-20 | 1 | -1/+1 | |
|/ | ||||||
* | Add @nicolas-grekas to README1.0.8 | Scott | 2015-10-18 | 1 | -0/+1 | |
| | ||||||
* | Running `phpunit.sh each` will test each CSPRNG source. | Scott | 2015-10-18 | 6 | -0/+51 | |
| | ||||||
* | Merge pull request #64 from paragonie/windows | Scott | 2015-10-18 | 2 | -9/+37 | |
|\ | | | | | Better test conditions for CAPICOM | |||||
| * | Consistent readability | Scott | 2015-10-18 | 1 | -1/+5 | |
| | | ||||||
| * | Break out of the elseif structure | Scott | 2015-10-18 | 2 | -15/+31 | |
| | | ||||||
| * | Better test conditions for CAPICOM | Scott | 2015-10-18 | 1 | -1/+9 | |
| | | ||||||
* | | Merge pull request #63 from oittaa/patch-7 | Scott | 2015-10-18 | 1 | -6/+4 | |
|\ \ | |/ |/| | phpunit.sh: just adding quotes around "$1" fixes the error | |||||
| * | phpunit.sh: just adding quotes around "$1" fixes the error | oittaa | 2015-10-17 | 1 | -6/+4 | |
|/ | ||||||
* | Fix bash error | Scott | 2015-10-17 | 1 | -4/+6 | |
| | ||||||
* | Merge pull request #59 from oittaa/patch-61.0.7 | Scott | 2015-10-16 | 4 | -12/+23 | |
|\ | | | | | Updated UtilityTest.php 64bit tests | |||||
| * | UtilityTest.php: added test case for "1." | oittaa | 2015-10-16 | 1 | -0/+3 | |
| | | ||||||
| * | random_bytes_libsodium.php $buf wasn't initialized | oittaa | 2015-10-16 | 1 | -0/+1 | |
| | | ||||||
| * | Updated UtilityTest.php with "1337e3" and "hello" | oittaa | 2015-10-16 | 1 | -0/+6 | |
| | | ||||||
| * | RandomIntTest.php: random_int("1337e3","1337e3") | oittaa | 2015-10-16 | 1 | -1/+3 | |
| | | ||||||
| * | cast_to_int.php to support more numeric strings | oittaa | 2015-10-16 | 1 | -9/+2 | |
| | | | | | | For example: random_int("1337e3","1337e3"); | |||||
| * | Updated UtilityTest.php 64bit tests | oittaa | 2015-10-16 | 1 | -2/+8 | |
|/ | | | Added failure cases for 64bit RandomCompat_intval tests and changed boundaries to be exactly at PHP_INT_MAX and ~PHP_INT_MAX. | |||||
* | Merge pull request #58 from oittaa/patch-5 | Scott | 2015-10-16 | 1 | -35/+9 | |
|\ | | | | | Resubmitting pull request to fix random_int("1.","1."); | |||||
| * | Resubmitting pull request to fix random_int("1.","1."); | oittaa | 2015-10-16 | 1 | -35/+9 | |
|/ | ||||||
* | Fix more integer/float boundary issues. | Scott | 2015-10-16 | 4 | -15/+60 | |
| | ||||||
* | Fix failing unit tests, remove test cases added "for illustrative purposes".1.0.6 | Scott | 2015-10-15 | 3 | -14/+11 | |
| | ||||||
* | Less code duplication, more unit tests. | Scott | 2015-10-15 | 10 | -85/+190 | |
| | ||||||
* | Libsodium: Allow absurd reads since other sources do too. | Scott | 2015-10-15 | 1 | -5/+8 | |
| | ||||||
* | Even more assertions and edge cases. | Scott | 2015-10-15 | 2 | -2/+15 | |
| | ||||||
* | Also make random_bytes() ignore floats == PHP_INT_MAX | Scott | 2015-10-15 | 6 | -6/+21 | |
| | ||||||
* | Correct fix | Scott | 2015-10-15 | 8 | -16/+23 | |
| | ||||||
* | Don't floor just round. | Scott | 2015-10-15 | 6 | -14/+14 | |
| | ||||||
* | Add edge case tests | Scott | 2015-10-15 | 1 | -0/+9 | |
| | ||||||
* | Exclude PHP_INT_MAX and ~PHP_INT_MAX because of floating point precision loss | Scott | 2015-10-15 | 1 | -5/+5 | |
| | ||||||
* | Merge pull request #56 from cs278/document-exception-handling | Scott | 2015-10-15 | 1 | -1/+39 | |
|\ | | | | | Add section to the docs about exception/error handling | |||||
| * | Add section to the docs about exception/error handling | Chris Smith | 2015-10-15 | 1 | -1/+39 | |
| | | ||||||
* | | Merge pull request #55 from glensc/include-path | Scott | 2015-10-15 | 1 | -8/+11 | |
|\ \ | | | | | | | avoid loading files from include_path | |||||
| * | | avoid loading files from include_path | Elan Ruusamäe | 2015-10-15 | 1 | -8/+11 | |
| | | | ||||||
* | | | Fix hyperlink | Scott | 2015-10-15 | 1 | -1/+1 | |
|/ / | ||||||
* | | Update readme | Scott | 2015-10-15 | 1 | -2/+26 | |
| | | ||||||
* | | Merge branch 'master' into tag 1.0.5 | Scott | 2015-10-15 | 13 | -23/+201 | |
|\ \ | |/ | | | | | | | | | | | | | Conflicts: lib/random_bytes_com_dotnet.php lib/random_bytes_mcrypt.php lib/random_bytes_openssl.php lib/random_int.php | |||||
| * | Add new contributors to README. | Scott | 2015-10-15 | 1 | -0/+3 | |
| | | | | | | Even if I didn't use your code, your input helped shape the direction of this library. Thanks a lot. | |||||
| * | Compromise -- be compatible with PHP 7, but with sanity | Scott | 2015-10-15 | 7 | -62/+64 | |
| | | ||||||
| * | fixed a typo in comments, $int -> $min | oittaa | 2015-10-15 | 1 | -1/+1 | |
| | | ||||||
| * | Better weak-typing. | Scott | 2015-10-15 | 8 | -7/+55 | |
| | | ||||||
| * | Use regular random_int(), proposal for better weak typing support. | Scott | 2015-10-15 | 8 | -175/+29 | |
| | | ||||||
| * | Implement suggestions by @narfbg | Scott | 2015-10-15 | 1 | -7/+16 | |
| | | ||||||
| * | Copypaste fail (thanks @jedisct1) | Scott | 2015-10-15 | 1 | -2/+0 | |
| | | ||||||
| * | Extra tinfoil for /dev/urandom (don't even try on Windows) | Scott | 2015-10-15 | 1 | -1/+1 | |
| | | ||||||
| * | Relax open_basedir restriction and just check that /dev/urandom is readable. ↵ | Cameron Eagans | 2015-10-15 | 0 | -0/+0 | |
| | | | | | | | | Fixes #46. | |||||
| * | Basically do what #48 does | Scott | 2015-10-15 | 1 | -11/+1 | |
| | | ||||||
| * | Suppress is_readable() errors (open_basedir, safe_mode) as per @cweagans in #48 | Scott | 2015-10-15 | 1 | -2/+2 | |
| | | ||||||
| * | Avoid redundancy | Scott | 2015-10-15 | 1 | -1/+1 | |
| | | ||||||
| * | Don't require strict types. We can cast to int. | Scott | 2015-10-15 | 5 | -5/+20 | |
| | | ||||||
| * | Fix numeric indices on ERRTA.md | Scott | 2015-10-15 | 1 | -5/+5 | |
| | | ||||||
| * | Fix libsodium | Scott | 2015-10-15 | 2 | -57/+73 | |
| | | ||||||
| * | Make it explicit not to use the master branch. | Scott | 2015-10-15 | 1 | -0/+2 | |
| | | ||||||
| * | Commented out openssl checks because of Debian versioning. | Scott | 2015-10-15 | 1 | -2/+9 | |
| | | ||||||
| * | Remove two bits of bias. | Scott | 2015-10-15 | 1 | -5/+21 | |
| | | ||||||
| * | Make sure /dev/urandom is readable after open_basedir check | Scott | 2015-10-15 | 1 | -3/+3 | |
| | | ||||||
| * | Annotate test quites | Scott | 2015-10-15 | 1 | -1/+5 | |
| | | ||||||
| * | Use /dev/urandom if it's encapsulated by open_basedir | Scott | 2015-10-15 | 2 | -1/+18 | |
| | | ||||||
| * | Use a logical range. | Scott | 2015-10-15 | 1 | -1/+1 | |
| | | ||||||
| * | Fix edge case ($range > 2^31-1 on 64-bit platforms) with libsodium thanks ↵ | Scott | 2015-10-15 | 1 | -0/+7 | |
| | | | | | | | | @jedisct1 | |||||
| * | Use \Sodium\randombytes_uniform() for random_int() | Scott | 2015-10-15 | 3 | -1/+110 | |
| | | ||||||
| * | Use libsodium for random bytes if it's available | Cameron Eagans | 2015-10-15 | 4 | -3/+84 | |
| | | ||||||
| * | Use extension_loaded() instead of checking that a function exists. | Cameron Eagans | 2015-10-15 | 1 | -2/+2 | |
| | | ||||||
| * | PHP 5.2 is weird. | Scott | 2015-10-15 | 1 | -9/+1 | |
| | | ||||||
| * | Consistently be less redundant with if statements. | Scott | 2015-10-15 | 5 | -251/+246 | |
| | | ||||||
* | | PHP 5.2 is weird.1.0.5 | Scott | 2015-10-08 | 1 | -9/+1 | |
| | | ||||||
* | | Consistently be less redundant with if statements.1.0.4 | Scott | 2015-10-02 | 5 | -251/+246 | |
| | | ||||||
* | | Merge pull request #41 from mmeyer2k/patch-1 | Scott | 2015-10-02 | 1 | -92/+90 | |
|\ \ | |/ | | | Remove redundant if statement | |||||
| * | Remove redundant if statement | Michael M | 2015-10-02 | 1 | -92/+90 | |
|/ | ||||||
* | Add to contributors list before 1.0.31.0.3 | Scott | 2015-10-02 | 1 | -0/+2 | |
| | ||||||
* | Merge pull request #40 from AndrewCarterUK/patch-1 | Scott | 2015-10-02 | 1 | -1/+1 | |
|\ | | | | | Indentation | |||||
| * | Indentation | Andrew Carter | 2015-10-02 | 1 | -1/+1 | |
| | | | | | | Tiny fix, just saw it out of the corner of my eye | |||||
* | | Merge pull request #38 from dd32/master | Scott | 2015-10-02 | 1 | -2/+2 | |
|\ \ | | | | | | | Avoid a PHP Notice when PHP is running without the mbstring extension. | |||||
| * | | Avoid a PHP Notice when PHP is running without the mbstring extension. | Dion Hulse | 2015-10-01 | 1 | -2/+2 | |
| |/ | ||||||
* | | Merge pull request #39 from xabbuh/patch-1 | Scott | 2015-10-02 | 1 | -2/+12 | |
|\ \ | |/ |/| | download compatible PHPUnit version | |||||
| * | fix local filenames | Christian Flothmann | 2015-10-02 | 1 | -2/+2 | |
| | | ||||||
| * | download compatible PHPUnit version | Christian Flothmann | 2015-10-02 | 1 | -2/+12 | |
|/ | | | | PHPUnit 5 is not compatible with PHP before 5.6 while PHPUnit 4 should be used for those PHP versions. | |||||
* | Fix phpunit.sh path for non-composer builds | Scott | 2015-09-23 | 2 | -3/+3 | |
| | ||||||
* | Add Dion Hulse to contributors, prepare for 1.0.21.0.2 | Scott | 2015-09-23 | 1 | -0/+1 | |
| | ||||||
* | Merge pull request #36 from dd32/compat-types | Scott | 2015-09-23 | 2 | -3/+11 | |
|\ | | | | | PHP7 input type compatibility | |||||
| * | Replace tabs with Spaces as per random_compat's coding standards. | Dion Hulse | 2015-09-23 | 1 | -2/+2 | |
| | | ||||||
| * | Revert some unexpected whitespace changes | Dion Hulse | 2015-09-23 | 2 | -3/+3 | |
| | | ||||||
| * | Compatibility with PHP7-RC3, PHP accepts numeric parameters (although the ↵ | Dion Hulse | 2015-09-23 | 2 | -6/+14 | |
|/ | | | | | | | error is "Integer" for invalid input) as such, it acepts floats and numeric strings. PHP will drop the fraction component of floats, both in random_int() and when using (int) typecasting. PHP will accept any numeric string, directly typecasting it for usage. | |||||
* | Update README.md1.0.1 | Scott | 2015-09-10 | 1 | -0/+1 | |
| |