{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/otp/issues/907","labels_url":"https://api.github.com/repos/erlang/otp/issues/907/labels{/name}","comments_url":"https://api.github.com/repos/erlang/otp/issues/907/comments","events_url":"https://api.github.com/repos/erlang/otp/issues/907/events","html_url":"https://github.com/erlang/otp/pull/907","id":118979957,"number":907,"title":"Use crypto:strong_rand_bytes to generate keys","user":{"login":"riverrun","id":434903,"avatar_url":"https://avatars.githubusercontent.com/u/434903?v=3","gravatar_id":"","url":"https://api.github.com/users/riverrun","html_url":"https://github.com/riverrun","followers_url":"https://api.github.com/users/riverrun/followers","following_url":"https://api.github.com/users/riverrun/following{/other_user}","gists_url":"https://api.github.com/users/riverrun/gists{/gist_id}","starred_url":"https://api.github.com/users/riverrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riverrun/subscriptions","organizations_url":"https://api.github.com/users/riverrun/orgs","repos_url":"https://api.github.com/users/riverrun/repos","events_url":"https://api.github.com/users/riverrun/events{/privacy}","received_events_url":"https://api.github.com/users/riverrun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T06:27:41Z","updated_at":"2015-11-26T07:23:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/erlang/otp/pulls/907","html_url":"https://github.com/erlang/otp/pull/907","diff_url":"https://github.com/erlang/otp/pull/907.diff","patch_url":"https://github.com/erlang/otp/pull/907.patch"},"body":"## Changes\r\n\r\nReplaced crypto:rand_bytes with crypto:strong_rand_bytes, and changed a function which falls back to crypto:rand_bytes to simple raise an error (using crypto:strong_rand_bytes).\r\n\r\n### Reasons for changes\r\n\r\nAs noted in #883, crypto:rand_bytes uses a PRNG that has been deprecated by Openssl, and Openssl recommend against using it to generate keys."},"comment":{"url":"https://api.github.com/repos/erlang/otp/issues/comments/159834310","html_url":"https://github.com/erlang/otp/pull/907#issuecomment-159834310","issue_url":"https://api.github.com/repos/erlang/otp/issues/907","id":159834310,"user":{"login":"okeuday","id":61850,"avatar_url":"https://avatars.githubusercontent.com/u/61850?v=3","gravatar_id":"","url":"https://api.github.com/users/okeuday","html_url":"https://github.com/okeuday","followers_url":"https://api.github.com/users/okeuday/followers","following_url":"https://api.github.com/users/okeuday/following{/other_user}","gists_url":"https://api.github.com/users/okeuday/gists{/gist_id}","starred_url":"https://api.github.com/users/okeuday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okeuday/subscriptions","organizations_url":"https://api.github.com/users/okeuday/orgs","repos_url":"https://api.github.com/users/okeuday/repos","events_url":"https://api.github.com/users/okeuday/events{/privacy}","received_events_url":"https://api.github.com/users/okeuday/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T07:23:57Z","updated_at":"2015-11-26T07:23:57Z","body":"good catch!"}}