summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.0.1 exceptionalv1.0.1-exceptionalorigin/exceptionalScott2015-09-102-6/+9
|
* Wow, how did my git client screw this up?v1.0.0-exceptionalv1.0.0-excScott2015-09-098-76/+19
|
* Add @chriscct7 to contributors list.v1.0.0Scott2015-09-061-0/+1
|
* Uncommit phpunit.Scott2015-09-062-72791/+0
|
* Remove PHP 7 from allowed failures.Scott2015-09-061-1/+0
|
* Add Scrutinizer integrationScott2015-09-062-0/+5
|
* If we're rocking PHP 7, this library should be a NOPScott2015-09-066-52/+72852
|
* We can relax our minimum version.Scott2015-09-041-1/+1
| | | You **SHOULD** be running 5.6.x, however.
* Emulate PHP_VERSION_ID for < 5.2.7Scott2015-09-041-0/+4
|
* Giving credit where credit is due.Scott2015-09-031-5/+14
|
* Use a constant instead of an obscure integer valueScott2015-09-031-2/+2
|
* Merge pull request #31 from twistor/func_overloadScott2015-09-031-2/+2
|\ | | | | Check mbstring.func_overload value rather than for existing functions.
| * Check mbstring.func_overload rather than for existing functions.Chris Leppanen2015-09-011-2/+2
| |
* | Merge pull request #32 from juliangut/masterScott2015-09-021-27/+27
|\ \ | | | | | | correct @throws in docblocks
| * | correct @throws in docblocksJulián Gutiérrez2015-09-021-27/+27
|/ /
* | Merge pull request #30 from juliangut/masterScott2015-09-012-1/+5
|\ \ | |/ |/| version constraint due to PHP_VERSION_ID
| * version constraint due to PHP_VERSION_ID constantJulián Gutiérrez2015-09-012-1/+5
|/
* Merge pull request #29 from paragonie/revert-28-add-php7-version-constraintv0.9.7Scott2015-09-011-3/+0
|\ | | | | Revert "Require versions of PHP less than 7 only"
| * Revert "Require versions of PHP less than 7 only"Scott2015-09-011-3/+0
|/
* Merge pull request #28 from asgrim/add-php7-version-constraintScott2015-09-011-0/+3
|\ | | | | Require versions of PHP less than 7 only
| * Require versions of PHP less than 7 onlyJames Titcumb2015-09-011-0/+3
|/
* Update to conform to https://wiki.php.net/rfc/random-function-exceptionsScott2015-08-318-13/+92
|
* Merge pull request #27 from stof/patch-1Scott2015-08-211-1/+1
|\ | | | | Use PHP_VERSION_ID to check the PHP version
| * Use PHP_VERSION_ID to check the PHP versionChristophe Coevoet2015-08-211-1/+1
|/
* Merge pull request #26 from teohhanhui/patch-1Scott2015-08-201-1/+0
|\ | | | | Remove version field from composer.json
| * Remove version field from composer.jsonTeoh Han Hui2015-08-181-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 readmeScott2015-08-061-1/+1
|
* See https://github.com/paragonie/random_compat/pull/22#issuecomment-128332995v0.9.6Scott2015-08-061-1/+1
| | | https://github.com/paragonie/random_compat/pull/22#issuecomment-128332995
* Merge pull request #24 from paragonie/splitScott2015-08-067-474/+665
|\ | | | | Split implementations into their own files.
| * Update random.phpScott2015-08-061-6/+6
| |
| * Update random_bytes_dev_urandom.phpScott2015-08-061-0/+4
| |
| * Update random.phpScott2015-08-061-0/+2
| |
| * Update random.phpScott2015-08-061-1/+1
| |
| * Update random.phpScott2015-08-061-474/+9
| |
| * Create random_int.phpScott2015-08-061-0/+170
| |
| * Create random_bytes_openssl.phpScott2015-08-061-0/+66
| |
| * Create random_bytes_mcrypt.phpScott2015-08-061-0/+71
| |
| * Create random_bytes_dev_urandom.phpScott2015-08-061-0/+123
| |
| * Create random_bytes_com_dotnet.phpScott2015-08-061-0/+66
| |
| * Create byte_safe_strings.phpScott2015-08-061-0/+154
|/
* Version 0.9.5 (pre-release)v0.9.5Scott2015-07-312-2/+4
|
* Merge pull request #22 from jedisct1/fix-open-raceScott2015-07-311-3/+9
|\ | | | | Avoid a race condition when opening /dev/urandom
| * Avoid a race condition when opening /dev/urandomFrank Denis2015-07-311-3/+9
|/
* A little bit of buffering - not wasteful, slight optimization.Scott2015-07-301-1/+1
|
* filetype() is a sufficient checkScott2015-07-301-25/+2
|
* Merge pull request #21 from jedisct1/farewell-arandomScott2015-07-302-39/+17
|\ | | | | Do not check for /dev/arandom any more.
| * Do not check for /dev/arandom any more.Frank Denis2015-07-312-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 benchmarkingScott2015-07-281-1/+5
|
* Adding comments, add MIT license header to lib/random.phpScott2015-07-271-0/+53
|
* Version 0.9.4v0.9.4Scott2015-07-271-1/+1
|
* Merge pull request #19 from paragonie/is_deviceScott2015-07-272-43/+100
|\ | | | | Verify that /dev/* is actually a device, not a file
| * Add HHVM + PHP 7, allow both to failScott2015-07-271-6/+16
| |
| * BoyscoutingScott2015-07-271-45/+63
| |
| * Comment cleanup, link to /dev/arandom manual pageScott2015-07-271-1/+4
| |
| * Check that we're working with a special char device, per ↵Scott2015-07-271-5/+14
| | | | | | | | http://stackoverflow.com/a/31644598/2224584
| * Document this block of code.Scott2015-07-251-0/+10
| |
| * If rdev is not available, PHP sets it to -1. At that point, we cannot know.Scott2015-07-251-3/+3
| |
| * Proposed test for is_deviceScott2015-07-251-4/+11
|/
* Fix typos in commentsScott2015-07-221-1/+1
|
* CS fixScott2015-07-221-2/+1
| | | How did that newline sneak in there?
* Version 0.9.3v0.9.3Scott2015-07-221-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.mdScott2015-07-221-9/+9
|
* I had misread @lt and @sammyk's recommendationScott2015-07-221-43/+44
| | | `/dev/arandom` > `/dev/urandom` > `mcrypt` > `.NET` > `openssl`
* Add descriptionScott2015-07-211-1/+1
|
* Merge pull request #17 from oittaa/patch-2Scott2015-07-201-7/+1
|\ | | | | +1 and -1 juggling is unnecessary.
| * +1 and -1 juggling is unnecessary.oittaa2015-07-201-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 namingScott2015-07-161-20/+81
|
* Fixed several minor bugs; let's call this 0.9.2v0.9.2Scott2015-07-161-1/+1
|
* Add @tsyr2ko to the contributors list.Scott2015-07-161-0/+1
|
* Correct function check, closes #16 (thanks @tsyr2ko)Scott2015-07-161-1/+1
|
* Add test for mbstring.func_overloadScott2015-07-151-0/+5
|
* Add open_basedir testScott2015-07-151-0/+5
|
* Evaluate open_basedir check firstScott2015-07-151-1/+1
|
* Update random.phpScott2015-07-131-0/+5
|
* Add ERRATA file to explain the random_bytes order.Scott2015-07-132-1/+37
|
* Add Paragon Initiative's SECURITY.md fileScott2015-07-131-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.Scott2015-07-131-2/+9
|
* Merge pull request #14 from oittaa/patch-1Scott2015-07-131-56/+34
|\ | | | | Update random.php (thanks @oittaa)
| * Update random.phpoittaa2015-07-131-56/+34
|/ | | Consolidate logic for wide ranges and narrow ranges
* Add Stephen Chavez (@redragonx) to readmeScott2015-07-131-0/+1
|
* Remove duplicate assertion. We aren't the Department of Redundancy Department.Scott2015-07-121-1/+0
|
* Variable name consistency (thanks @oittaa) ↵Scott2015-07-121-7/+3
| | | | https://github.com/paragonie/random_compat/issues/11#issuecomment-120787972
* Merge pull request #12 from redragonx/patch-1Scott2015-07-121-1/+1
|\ | | | | Mispelling errord?
| * Mispelling errord?Stephen Chavez2015-07-111-1/+1
|/
* Copy behavior fix from defuse/php-encryptionScott2015-07-101-1/+7
|
* Add a notice about the "no suitable CSPRNG" Exception to the readme.Scott2015-07-101-2/+12
|
* Style consistency, throw exceptions on type error in strlen/substrScott2015-07-101-34/+152
|
* Define range properly in unit test.Scott2015-07-101-1/+1
|
* Optimize strlen() and substr() replacements.Scott2015-07-101-16/+20
|
* Update README.mdScott2015-07-101-1/+1
|
* Remove try-catch-throwScott2015-07-101-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 -Scott2015-07-101-1/+1
|
* Fix test range (suggsted by @oittaa in #11)Scott2015-07-101-1/+1
|
* Better var name (suggested by @redragonx in #11)Scott2015-07-101-3/+3
|
* v0.9.1 (pre-release)v0.9.1Scott2015-07-091-1/+1
|
* Logical consistency.Scott2015-07-091-5/+7
|
* Make open_basedir check apply to both random devices (thanks @kelunik)Scott2015-07-092-1/+2
|
* Wait, we aren't even using this value.Scott2015-07-091-4/+0
|
* Apparently % float is causing it to return 0...Scott2015-07-091-0/+3
|
* More explicitly compare $min and $maxScott2015-07-091-6/+2
|