summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Handle disabled classes1.1.2Scott2015-12-091-7/+15
|
* Use stream_set_chunk_size() to prevent reading 8192 bytes from /dev/urandom ↵1.1.1Scott2015-11-301-10/+15
| | | | on Linux
* Don't use OpenSSL on Windows on PHP < 5.4.11.1.0Scott2015-11-091-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 7Scott2015-11-095-5/+5
|
* Update .travis.ymlScott2015-10-301-1/+1
|
* Update composer.jsonScott2015-10-301-1/+1
|
* Merge pull request #75 from ircmaxell/test_refactorScott2015-10-305-123/+95
|\ | | | | Refactor tests to use phpunit properly with standardized bootstrappin…
| * Refactor tests to use phpunit properly with standardized bootstrapping and ↵Anthony Ferrara2015-10-305-123/+95
|/ | | | maanging phpunit via composer
* Don't use OpenSSL in PHP 5.3.0 - 5.3.3 on Windows1.0.10Scott2015-10-231-1/+9
|
* unset -> nullScott2015-10-231-13/+13
|
* Merge pull request #70 from oittaa/patch-9Scott2015-10-221-3/+4
|\ | | | | random.php: unset $RandomCompatCOMtest
| * renamed renamed $version to $RandomCompatversionoittaa2015-10-211-3/+3
| | | | | | $version seems to be quite common variable name and we might accidentally overwrite and unset it.
| * random.php: unset $RandomCompatCOMtestoittaa2015-10-211-0/+1
|/
* Merge origin/master1.0.9Scott2015-10-202-9/+2
|\
| * Merge pull request #66 from nicolas-grekas/no-throwableScott2015-10-192-9/+2
| |\ | | | | | | Remove Throwable polyfill
| | * Remove Throwable polyfillNicolas Grekas2015-10-192-9/+2
| |/
* | Minor style consistency boyscoutingScott2015-10-201-6/+6
| |
* | Silence mcrypt_create_iv() failures caused by proc_openScott2015-10-201-1/+1
|/
* Add @nicolas-grekas to README1.0.8Scott2015-10-181-0/+1
|
* Running `phpunit.sh each` will test each CSPRNG source.Scott2015-10-186-0/+51
|
* Merge pull request #64 from paragonie/windowsScott2015-10-182-9/+37
|\ | | | | Better test conditions for CAPICOM
| * Consistent readabilityScott2015-10-181-1/+5
| |
| * Break out of the elseif structureScott2015-10-182-15/+31
| |
| * Better test conditions for CAPICOMScott2015-10-181-1/+9
| |
* | Merge pull request #63 from oittaa/patch-7Scott2015-10-181-6/+4
|\ \ | |/ |/| phpunit.sh: just adding quotes around "$1" fixes the error
| * phpunit.sh: just adding quotes around "$1" fixes the erroroittaa2015-10-171-6/+4
|/
* Fix bash errorScott2015-10-171-4/+6
|
* Merge pull request #59 from oittaa/patch-61.0.7Scott2015-10-164-12/+23
|\ | | | | Updated UtilityTest.php 64bit tests
| * UtilityTest.php: added test case for "1."oittaa2015-10-161-0/+3
| |
| * random_bytes_libsodium.php $buf wasn't initializedoittaa2015-10-161-0/+1
| |
| * Updated UtilityTest.php with "1337e3" and "hello"oittaa2015-10-161-0/+6
| |
| * RandomIntTest.php: random_int("1337e3","1337e3")oittaa2015-10-161-1/+3
| |
| * cast_to_int.php to support more numeric stringsoittaa2015-10-161-9/+2
| | | | | | For example: random_int("1337e3","1337e3");
| * Updated UtilityTest.php 64bit testsoittaa2015-10-161-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-5Scott2015-10-161-35/+9
|\ | | | | Resubmitting pull request to fix random_int("1.","1.");
| * Resubmitting pull request to fix random_int("1.","1.");oittaa2015-10-161-35/+9
|/
* Fix more integer/float boundary issues.Scott2015-10-164-15/+60
|
* Fix failing unit tests, remove test cases added "for illustrative purposes".1.0.6Scott2015-10-153-14/+11
|
* Less code duplication, more unit tests.Scott2015-10-1510-85/+190
|
* Libsodium: Allow absurd reads since other sources do too.Scott2015-10-151-5/+8
|
* Even more assertions and edge cases.Scott2015-10-152-2/+15
|
* Also make random_bytes() ignore floats == PHP_INT_MAXScott2015-10-156-6/+21
|
* Correct fixScott2015-10-158-16/+23
|
* Don't floor just round.Scott2015-10-156-14/+14
|
* Add edge case testsScott2015-10-151-0/+9
|
* Exclude PHP_INT_MAX and ~PHP_INT_MAX because of floating point precision lossScott2015-10-151-5/+5
|
* Merge pull request #56 from cs278/document-exception-handlingScott2015-10-151-1/+39
|\ | | | | Add section to the docs about exception/error handling
| * Add section to the docs about exception/error handlingChris Smith2015-10-151-1/+39
| |
* | Merge pull request #55 from glensc/include-pathScott2015-10-151-8/+11
|\ \ | | | | | | avoid loading files from include_path
| * | avoid loading files from include_pathElan Ruusamäe2015-10-151-8/+11
| | |
* | | Fix hyperlinkScott2015-10-151-1/+1
|/ /
* | Update readmeScott2015-10-151-2/+26
| |
* | Merge branch 'master' into tag 1.0.5Scott2015-10-1513-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.Scott2015-10-151-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 sanityScott2015-10-157-62/+64
| |
| * fixed a typo in comments, $int -> $minoittaa2015-10-151-1/+1
| |
| * Better weak-typing.Scott2015-10-158-7/+55
| |
| * Use regular random_int(), proposal for better weak typing support.Scott2015-10-158-175/+29
| |
| * Implement suggestions by @narfbgScott2015-10-151-7/+16
| |
| * Copypaste fail (thanks @jedisct1)Scott2015-10-151-2/+0
| |
| * Extra tinfoil for /dev/urandom (don't even try on Windows)Scott2015-10-151-1/+1
| |
| * Relax open_basedir restriction and just check that /dev/urandom is readable. ↵Cameron Eagans2015-10-150-0/+0
| | | | | | | | Fixes #46.
| * Basically do what #48 doesScott2015-10-151-11/+1
| |
| * Suppress is_readable() errors (open_basedir, safe_mode) as per @cweagans in #48Scott2015-10-151-2/+2
| |
| * Avoid redundancyScott2015-10-151-1/+1
| |
| * Don't require strict types. We can cast to int.Scott2015-10-155-5/+20
| |
| * Fix numeric indices on ERRTA.mdScott2015-10-151-5/+5
| |
| * Fix libsodiumScott2015-10-152-57/+73
| |
| * Make it explicit not to use the master branch.Scott2015-10-151-0/+2
| |
| * Commented out openssl checks because of Debian versioning.Scott2015-10-151-2/+9
| |
| * Remove two bits of bias.Scott2015-10-151-5/+21
| |
| * Make sure /dev/urandom is readable after open_basedir checkScott2015-10-151-3/+3
| |
| * Annotate test quitesScott2015-10-151-1/+5
| |
| * Use /dev/urandom if it's encapsulated by open_basedirScott2015-10-152-1/+18
| |
| * Use a logical range.Scott2015-10-151-1/+1
| |
| * Fix edge case ($range > 2^31-1 on 64-bit platforms) with libsodium thanks ↵Scott2015-10-151-0/+7
| | | | | | | | @jedisct1
| * Use \Sodium\randombytes_uniform() for random_int()Scott2015-10-153-1/+110
| |
| * Use libsodium for random bytes if it's availableCameron Eagans2015-10-154-3/+84
| |
| * Use extension_loaded() instead of checking that a function exists.Cameron Eagans2015-10-151-2/+2
| |
| * PHP 5.2 is weird.Scott2015-10-151-9/+1
| |
| * Consistently be less redundant with if statements.Scott2015-10-155-251/+246
| |
* | PHP 5.2 is weird.1.0.5Scott2015-10-081-9/+1
| |
* | Consistently be less redundant with if statements.1.0.4Scott2015-10-025-251/+246
| |
* | Merge pull request #41 from mmeyer2k/patch-1Scott2015-10-021-92/+90
|\ \ | |/ | | Remove redundant if statement
| * Remove redundant if statementMichael M2015-10-021-92/+90
|/
* Add to contributors list before 1.0.31.0.3Scott2015-10-021-0/+2
|
* Merge pull request #40 from AndrewCarterUK/patch-1Scott2015-10-021-1/+1
|\ | | | | Indentation
| * IndentationAndrew Carter2015-10-021-1/+1
| | | | | | Tiny fix, just saw it out of the corner of my eye
* | Merge pull request #38 from dd32/masterScott2015-10-021-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 Hulse2015-10-011-2/+2
| |/
* | Merge pull request #39 from xabbuh/patch-1Scott2015-10-021-2/+12
|\ \ | |/ |/| download compatible PHPUnit version
| * fix local filenamesChristian Flothmann2015-10-021-2/+2
| |
| * download compatible PHPUnit versionChristian Flothmann2015-10-021-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 buildsScott2015-09-232-3/+3
|
* Add Dion Hulse to contributors, prepare for 1.0.21.0.2Scott2015-09-231-0/+1
|
* Merge pull request #36 from dd32/compat-typesScott2015-09-232-3/+11
|\ | | | | PHP7 input type compatibility
| * Replace tabs with Spaces as per random_compat's coding standards.Dion Hulse2015-09-231-2/+2
| |
| * Revert some unexpected whitespace changesDion Hulse2015-09-232-3/+3
| |
| * Compatibility with PHP7-RC3, PHP accepts numeric parameters (although the ↵Dion Hulse2015-09-232-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.1Scott2015-09-101-0/+1
|