{"action":"created","issue":{"url":"https://api.github.com/repos/defuse/php-encryption/issues/68","labels_url":"https://api.github.com/repos/defuse/php-encryption/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/defuse/php-encryption/issues/68/comments","events_url":"https://api.github.com/repos/defuse/php-encryption/issues/68/events","html_url":"https://github.com/defuse/php-encryption/issues/68","id":93669842,"number":68,"title":"Use random_bytes() for key generation?","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":5,"created_at":"2015-07-08T01:37:22Z","updated_at":"2015-10-16T05:41:13Z","closed_at":null,"body":"For PHP 7.0.0 and above, [`random_bytes()`](https://secure.php.net/random_bytes) should be used instead of [`openssl_random_pseudo_bytes()`](https://github.com/paragonie/random_compat/issues/5) (see issue).\r\n\r\nWe've written a polyfill called [random_compat](https://github.com/paragonie/random_compat) which should polyfill both APIs here. Would it make sense to consolidate all of the CSPRNG effort into that project instead and just add it as a dependency?"},"comment":{"url":"https://api.github.com/repos/defuse/php-encryption/issues/comments/148615583","html_url":"https://github.com/defuse/php-encryption/issues/68#issuecomment-148615583","issue_url":"https://api.github.com/repos/defuse/php-encryption/issues/68","id":148615583,"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},"created_at":"2015-10-16T05:41:13Z","updated_at":"2015-10-16T05:41:13Z","body":"And by that, I of course mean v1.0.6. :)"}}