Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Version 1.0.1 exceptionalv1.0.1-exceptionalorigin/exceptional | Scott | 2015-09-10 | 2 | -6/+9 |
| | |||||
* | Wow, how did my git client screw this up?v1.0.0-exceptionalv1.0.0-exc | Scott | 2015-09-09 | 8 | -76/+19 |
| | |||||
* | Add @chriscct7 to contributors list.v1.0.0 | Scott | 2015-09-06 | 1 | -0/+1 |
| | |||||
* | Uncommit phpunit. | Scott | 2015-09-06 | 2 | -72791/+0 |
| | |||||
* | Remove PHP 7 from allowed failures. | Scott | 2015-09-06 | 1 | -1/+0 |
| | |||||
* | Add Scrutinizer integration | Scott | 2015-09-06 | 2 | -0/+5 |
| | |||||
* | If we're rocking PHP 7, this library should be a NOP | Scott | 2015-09-06 | 6 | -52/+72852 |
| | |||||
* | We can relax our minimum version. | Scott | 2015-09-04 | 1 | -1/+1 |
| | | | You **SHOULD** be running 5.6.x, however. | ||||
* | Emulate PHP_VERSION_ID for < 5.2.7 | Scott | 2015-09-04 | 1 | -0/+4 |
| | |||||
* | Giving credit where credit is due. | Scott | 2015-09-03 | 1 | -5/+14 |
| | |||||
* | Use a constant instead of an obscure integer value | Scott | 2015-09-03 | 1 | -2/+2 |
| | |||||
* | Merge pull request #31 from twistor/func_overload | Scott | 2015-09-03 | 1 | -2/+2 |
|\ | | | | | Check mbstring.func_overload value rather than for existing functions. | ||||
| * | Check mbstring.func_overload rather than for existing functions. | Chris Leppanen | 2015-09-01 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #32 from juliangut/master | Scott | 2015-09-02 | 1 | -27/+27 |
|\ \ | | | | | | | correct @throws in docblocks | ||||
| * | | correct @throws in docblocks | Julián Gutiérrez | 2015-09-02 | 1 | -27/+27 |
|/ / | |||||
* | | Merge pull request #30 from juliangut/master | Scott | 2015-09-01 | 2 | -1/+5 |
|\ \ | |/ |/| | version constraint due to PHP_VERSION_ID | ||||
| * | version constraint due to PHP_VERSION_ID constant | Julián Gutiérrez | 2015-09-01 | 2 | -1/+5 |
|/ | |||||
* | Merge pull request #29 from paragonie/revert-28-add-php7-version-constraintv0.9.7 | Scott | 2015-09-01 | 1 | -3/+0 |
|\ | | | | | Revert "Require versions of PHP less than 7 only" | ||||
| * | Revert "Require versions of PHP less than 7 only" | Scott | 2015-09-01 | 1 | -3/+0 |
|/ | |||||
* | Merge pull request #28 from asgrim/add-php7-version-constraint | Scott | 2015-09-01 | 1 | -0/+3 |
|\ | | | | | Require versions of PHP less than 7 only | ||||
| * | Require versions of PHP less than 7 only | James Titcumb | 2015-09-01 | 1 | -0/+3 |
|/ | |||||
* | Update to conform to https://wiki.php.net/rfc/random-function-exceptions | Scott | 2015-08-31 | 8 | -13/+92 |
| | |||||
* | Merge pull request #27 from stof/patch-1 | Scott | 2015-08-21 | 1 | -1/+1 |
|\ | | | | | Use PHP_VERSION_ID to check the PHP version | ||||
| * | Use PHP_VERSION_ID to check the PHP version | Christophe Coevoet | 2015-08-21 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #26 from teohhanhui/patch-1 | Scott | 2015-08-20 | 1 | -1/+0 |
|\ | | | | | Remove version field from composer.json | ||||
| * | Remove version field from composer.json | Teoh Han Hui | 2015-08-18 | 1 | -1/+0 |
|/ | | | | | Recommended so that version can be automatically (properly) determined from tags and branches. See https://getcomposer.org/doc/04-schema.md#version | ||||
* | Wording in the readme | Scott | 2015-08-06 | 1 | -1/+1 |
| | |||||
* | See https://github.com/paragonie/random_compat/pull/22#issuecomment-128332995v0.9.6 | Scott | 2015-08-06 | 1 | -1/+1 |
| | | | https://github.com/paragonie/random_compat/pull/22#issuecomment-128332995 | ||||
* | Merge pull request #24 from paragonie/split | Scott | 2015-08-06 | 7 | -474/+665 |
|\ | | | | | Split implementations into their own files. | ||||
| * | Update random.php | Scott | 2015-08-06 | 1 | -6/+6 |
| | | |||||
| * | Update random_bytes_dev_urandom.php | Scott | 2015-08-06 | 1 | -0/+4 |
| | | |||||
| * | Update random.php | Scott | 2015-08-06 | 1 | -0/+2 |
| | | |||||
| * | Update random.php | Scott | 2015-08-06 | 1 | -1/+1 |
| | | |||||
| * | Update random.php | Scott | 2015-08-06 | 1 | -474/+9 |
| | | |||||
| * | Create random_int.php | Scott | 2015-08-06 | 1 | -0/+170 |
| | | |||||
| * | Create random_bytes_openssl.php | Scott | 2015-08-06 | 1 | -0/+66 |
| | | |||||
| * | Create random_bytes_mcrypt.php | Scott | 2015-08-06 | 1 | -0/+71 |
| | | |||||
| * | Create random_bytes_dev_urandom.php | Scott | 2015-08-06 | 1 | -0/+123 |
| | | |||||
| * | Create random_bytes_com_dotnet.php | Scott | 2015-08-06 | 1 | -0/+66 |
| | | |||||
| * | Create byte_safe_strings.php | Scott | 2015-08-06 | 1 | -0/+154 |
|/ | |||||
* | Version 0.9.5 (pre-release)v0.9.5 | Scott | 2015-07-31 | 2 | -2/+4 |
| | |||||
* | Merge pull request #22 from jedisct1/fix-open-race | Scott | 2015-07-31 | 1 | -3/+9 |
|\ | | | | | Avoid a race condition when opening /dev/urandom | ||||
| * | Avoid a race condition when opening /dev/urandom | Frank Denis | 2015-07-31 | 1 | -3/+9 |
|/ | |||||
* | A little bit of buffering - not wasteful, slight optimization. | Scott | 2015-07-30 | 1 | -1/+1 |
| | |||||
* | filetype() is a sufficient check | Scott | 2015-07-30 | 1 | -25/+2 |
| | |||||
* | Merge pull request #21 from jedisct1/farewell-arandom | Scott | 2015-07-30 | 2 | -39/+17 |
|\ | | | | | Do not check for /dev/arandom any more. | ||||
| * | Do not check for /dev/arandom any more. | Frank Denis | 2015-07-31 | 2 | -39/+17 |
|/ | | | | | | | | | | /dev/arandom is a deprecated OpenBSD-only char device, which became an alias for /dev/urandom in OpenBSD 5.5, for the sole purpose of supporting old software that might still be referencing it. None of the supported versions of OpenBSD have /dev/arandom and /dev/urandom use different code, and /dev/arandom was replaced with /dev/urandom in all OpenBSD userland code quite a long time ago. | ||||
* | Set read buffer to a constant so we can change it for benchmarking | Scott | 2015-07-28 | 1 | -1/+5 |
| | |||||
* | Adding comments, add MIT license header to lib/random.php | Scott | 2015-07-27 | 1 | -0/+53 |
| | |||||
* | Version 0.9.4v0.9.4 | Scott | 2015-07-27 | 1 | -1/+1 |
| | |||||
* | Merge pull request #19 from paragonie/is_device | Scott | 2015-07-27 | 2 | -43/+100 |
|\ | | | | | Verify that /dev/* is actually a device, not a file | ||||
| * | Add HHVM + PHP 7, allow both to fail | Scott | 2015-07-27 | 1 | -6/+16 |
| | | |||||
| * | Boyscouting | Scott | 2015-07-27 | 1 | -45/+63 |
| | | |||||
| * | Comment cleanup, link to /dev/arandom manual page | Scott | 2015-07-27 | 1 | -1/+4 |
| | | |||||
| * | Check that we're working with a special char device, per ↵ | Scott | 2015-07-27 | 1 | -5/+14 |
| | | | | | | | | http://stackoverflow.com/a/31644598/2224584 | ||||
| * | Document this block of code. | Scott | 2015-07-25 | 1 | -0/+10 |
| | | |||||
| * | If rdev is not available, PHP sets it to -1. At that point, we cannot know. | Scott | 2015-07-25 | 1 | -3/+3 |
| | | |||||
| * | Proposed test for is_device | Scott | 2015-07-25 | 1 | -4/+11 |
|/ | |||||
* | Fix typos in comments | Scott | 2015-07-22 | 1 | -1/+1 |
| | |||||
* | CS fix | Scott | 2015-07-22 | 1 | -2/+1 |
| | | | How did that newline sneak in there? | ||||
* | Version 0.9.3v0.9.3 | Scott | 2015-07-22 | 1 | -1/+1 |
| | | | Unless the Exceptions change to PHP 7 fails, this should be the last pre-release version. If need be, we'll make one more pre-release version with compatible behavior. | ||||
* | Update ERRATA.md | Scott | 2015-07-22 | 1 | -9/+9 |
| | |||||
* | I had misread @lt and @sammyk's recommendation | Scott | 2015-07-22 | 1 | -43/+44 |
| | | | `/dev/arandom` > `/dev/urandom` > `mcrypt` > `.NET` > `openssl` | ||||
* | Add description | Scott | 2015-07-21 | 1 | -1/+1 |
| | |||||
* | Merge pull request #17 from oittaa/patch-2 | Scott | 2015-07-20 | 1 | -7/+1 |
|\ | | | | | +1 and -1 juggling is unnecessary. | ||||
| * | +1 and -1 juggling is unnecessary. | oittaa | 2015-07-20 | 1 | -7/+1 |
|/ | | | | Originally it was used with modulo arithmetic. https://gist.github.com/CodesInChaos/03f9ea0b58e8b2b8d435#file-random_compat-php-L73 A bit mask, $mask, is being used here instead of modulo arithmetic. | ||||
* | Improve comments and variable naming | Scott | 2015-07-16 | 1 | -20/+81 |
| | |||||
* | Fixed several minor bugs; let's call this 0.9.2v0.9.2 | Scott | 2015-07-16 | 1 | -1/+1 |
| | |||||
* | Add @tsyr2ko to the contributors list. | Scott | 2015-07-16 | 1 | -0/+1 |
| | |||||
* | Correct function check, closes #16 (thanks @tsyr2ko) | Scott | 2015-07-16 | 1 | -1/+1 |
| | |||||
* | Add test for mbstring.func_overload | Scott | 2015-07-15 | 1 | -0/+5 |
| | |||||
* | Add open_basedir test | Scott | 2015-07-15 | 1 | -0/+5 |
| | |||||
* | Evaluate open_basedir check first | Scott | 2015-07-15 | 1 | -1/+1 |
| | |||||
* | Update random.php | Scott | 2015-07-13 | 1 | -0/+5 |
| | |||||
* | Add ERRATA file to explain the random_bytes order. | Scott | 2015-07-13 | 2 | -1/+37 |
| | |||||
* | Add Paragon Initiative's SECURITY.md file | Scott | 2015-07-13 | 1 | -0/+108 |
| | | | This project is in our namespace, so it's only right that we treat it like we do our own projects. | ||||
* | Minor whitespace; cast result as int explicitly. | Scott | 2015-07-13 | 1 | -2/+9 |
| | |||||
* | Merge pull request #14 from oittaa/patch-1 | Scott | 2015-07-13 | 1 | -56/+34 |
|\ | | | | | Update random.php (thanks @oittaa) | ||||
| * | Update random.php | oittaa | 2015-07-13 | 1 | -56/+34 |
|/ | | | Consolidate logic for wide ranges and narrow ranges | ||||
* | Add Stephen Chavez (@redragonx) to readme | Scott | 2015-07-13 | 1 | -0/+1 |
| | |||||
* | Remove duplicate assertion. We aren't the Department of Redundancy Department. | Scott | 2015-07-12 | 1 | -1/+0 |
| | |||||
* | Variable name consistency (thanks @oittaa) ↵ | Scott | 2015-07-12 | 1 | -7/+3 |
| | | | | https://github.com/paragonie/random_compat/issues/11#issuecomment-120787972 | ||||
* | Merge pull request #12 from redragonx/patch-1 | Scott | 2015-07-12 | 1 | -1/+1 |
|\ | | | | | Mispelling errord? | ||||
| * | Mispelling errord? | Stephen Chavez | 2015-07-11 | 1 | -1/+1 |
|/ | |||||
* | Copy behavior fix from defuse/php-encryption | Scott | 2015-07-10 | 1 | -1/+7 |
| | |||||
* | Add a notice about the "no suitable CSPRNG" Exception to the readme. | Scott | 2015-07-10 | 1 | -2/+12 |
| | |||||
* | Style consistency, throw exceptions on type error in strlen/substr | Scott | 2015-07-10 | 1 | -34/+152 |
| | |||||
* | Define range properly in unit test. | Scott | 2015-07-10 | 1 | -1/+1 |
| | |||||
* | Optimize strlen() and substr() replacements. | Scott | 2015-07-10 | 1 | -16/+20 |
| | |||||
* | Update README.md | Scott | 2015-07-10 | 1 | -1/+1 |
| | |||||
* | Remove try-catch-throw | Scott | 2015-07-10 | 1 | -19/+14 |
| | | | CAPICOM will throw an exception if it errors out anyway. Since we're not using a super function that tries various methods anymore, this antipattern needs to go. | ||||
* | Use ~ instead of - | Scott | 2015-07-10 | 1 | -1/+1 |
| | |||||
* | Fix test range (suggsted by @oittaa in #11) | Scott | 2015-07-10 | 1 | -1/+1 |
| | |||||
* | Better var name (suggested by @redragonx in #11) | Scott | 2015-07-10 | 1 | -3/+3 |
| | |||||
* | v0.9.1 (pre-release)v0.9.1 | Scott | 2015-07-09 | 1 | -1/+1 |
| | |||||
* | Logical consistency. | Scott | 2015-07-09 | 1 | -5/+7 |
| | |||||
* | Make open_basedir check apply to both random devices (thanks @kelunik) | Scott | 2015-07-09 | 2 | -1/+2 |
| | |||||
* | Wait, we aren't even using this value. | Scott | 2015-07-09 | 1 | -4/+0 |
| | |||||
* | Apparently % float is causing it to return 0... | Scott | 2015-07-09 | 1 | -0/+3 |
| | |||||
* | More explicitly compare $min and $max | Scott | 2015-07-09 | 1 | -6/+2 |
| |