{"action":"created","issue":{"url":"https://api.github.com/repos/PeculiarVentures/node-webcrypto-ossl/issues/95","repository_url":"https://api.github.com/repos/PeculiarVentures/node-webcrypto-ossl","labels_url":"https://api.github.com/repos/PeculiarVentures/node-webcrypto-ossl/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/PeculiarVentures/node-webcrypto-ossl/issues/95/comments","events_url":"https://api.github.com/repos/PeculiarVentures/node-webcrypto-ossl/issues/95/events","html_url":"https://github.com/PeculiarVentures/node-webcrypto-ossl/pull/95","id":210391186,"number":95,"title":"Buffer to getRandomValues does not have to be only Uint8Array","user":{"login":"mitar","id":585279,"avatar_url":"https://avatars.githubusercontent.com/u/585279?v=3","gravatar_id":"","url":"https://api.github.com/users/mitar","html_url":"https://github.com/mitar","followers_url":"https://api.github.com/users/mitar/followers","following_url":"https://api.github.com/users/mitar/following{/other_user}","gists_url":"https://api.github.com/users/mitar/gists{/gist_id}","starred_url":"https://api.github.com/users/mitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitar/subscriptions","organizations_url":"https://api.github.com/users/mitar/orgs","repos_url":"https://api.github.com/users/mitar/repos","events_url":"https://api.github.com/users/mitar/events{/privacy}","received_events_url":"https://api.github.com/users/mitar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-27T05:27:59Z","updated_at":"2017-02-27T09:01:20Z","closed_at":"2017-02-27T07:21:52Z","pull_request":{"url":"https://api.github.com/repos/PeculiarVentures/node-webcrypto-ossl/pulls/95","html_url":"https://github.com/PeculiarVentures/node-webcrypto-ossl/pull/95","diff_url":"https://github.com/PeculiarVentures/node-webcrypto-ossl/pull/95.diff","patch_url":"https://github.com/PeculiarVentures/node-webcrypto-ossl/pull/95.patch"},"body":"This is a valid call:\r\n\r\n```\r\nvar array = new Uint32Array(2);\r\ncrypto.getRandomValues(array);\r\n```\r\n\r\nBut previously it fails with:\r\n\r\n```\r\nRangeError: Source is too large\r\n```\r\n\r\nwhen calling `array.set`. By converting `bytes.buffer` to an array of the same type, `set` works correctly."},"comment":{"url":"https://api.github.com/repos/PeculiarVentures/node-webcrypto-ossl/issues/comments/282663327","html_url":"https://github.com/PeculiarVentures/node-webcrypto-ossl/pull/95#issuecomment-282663327","issue_url":"https://api.github.com/repos/PeculiarVentures/node-webcrypto-ossl/issues/95","id":282663327,"user":{"login":"microshine","id":7333669,"avatar_url":"https://avatars.githubusercontent.com/u/7333669?v=3","gravatar_id":"","url":"https://api.github.com/users/microshine","html_url":"https://github.com/microshine","followers_url":"https://api.github.com/users/microshine/followers","following_url":"https://api.github.com/users/microshine/following{/other_user}","gists_url":"https://api.github.com/users/microshine/gists{/gist_id}","starred_url":"https://api.github.com/users/microshine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microshine/subscriptions","organizations_url":"https://api.github.com/users/microshine/orgs","repos_url":"https://api.github.com/users/microshine/repos","events_url":"https://api.github.com/users/microshine/events{/privacy}","received_events_url":"https://api.github.com/users/microshine/received_events","type":"User","site_admin":false},"created_at":"2017-02-27T09:01:20Z","updated_at":"2017-02-27T09:01:20Z","body":"new version 1.0.20 is available"}}
{"actor":{"display_login":"microshine"}}