{"action":"created","issue":{"url":"https://api.github.com/repos/phpseclib/phpseclib/issues/843","labels_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/843/labels{/name}","comments_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/843/comments","events_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/843/events","html_url":"https://github.com/phpseclib/phpseclib/issues/843","id":110719693,"number":843,"title":"Clarifying random_bytes() behavior in PHP 7","user":{"login":"paragonie-scott","id":11591518,"avatar_url":"https://avatars.githubusercontent.com/u/11591518?v=3","gravatar_id":"","url":"https://api.github.com/users/paragonie-scott","html_url":"https://github.com/paragonie-scott","followers_url":"https://api.github.com/users/paragonie-scott/followers","following_url":"https://api.github.com/users/paragonie-scott/following{/other_user}","gists_url":"https://api.github.com/users/paragonie-scott/gists{/gist_id}","starred_url":"https://api.github.com/users/paragonie-scott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paragonie-scott/subscriptions","organizations_url":"https://api.github.com/users/paragonie-scott/orgs","repos_url":"https://api.github.com/users/paragonie-scott/repos","events_url":"https://api.github.com/users/paragonie-scott/events{/privacy}","received_events_url":"https://api.github.com/users/paragonie-scott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-09T19:11:52Z","updated_at":"2015-10-09T19:16:56Z","closed_at":null,"body":"Re: https://github.com/phpseclib/phpseclib/blob/0ba1a04c05de04fba9d09ae5b7b33b2399541dca/phpseclib/Crypt/Random.php#L60\r\n\r\n`random_bytes()` will throw:\r\n\r\n* `Exception` in the event of a catastrophic CSPRNG failure\r\n* `TypeError` if `zend_parse_parameters` fails\r\n* `Error` if `$length` is less than or equal to 0"},"comment":{"url":"https://api.github.com/repos/phpseclib/phpseclib/issues/comments/146965024","html_url":"https://github.com/phpseclib/phpseclib/issues/843#issuecomment-146965024","issue_url":"https://api.github.com/repos/phpseclib/phpseclib/issues/843","id":146965024,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T19:16:56Z","updated_at":"2015-10-09T19:16:56Z","body":"So we need to catch Throwable rather than Error?"}}