{"action":"created","issue":{"url":"https://api.github.com/repos/beaugunderson/node-poisson-disc-sampler/issues/1","labels_url":"https://api.github.com/repos/beaugunderson/node-poisson-disc-sampler/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/beaugunderson/node-poisson-disc-sampler/issues/1/comments","events_url":"https://api.github.com/repos/beaugunderson/node-poisson-disc-sampler/issues/1/events","html_url":"https://github.com/beaugunderson/node-poisson-disc-sampler/pull/1","id":74278922,"number":1,"title":"Expose random number generator","user":{"login":"emilbayes","id":416524,"avatar_url":"https://avatars.githubusercontent.com/u/416524?v=3","gravatar_id":"","url":"https://api.github.com/users/emilbayes","html_url":"https://github.com/emilbayes","followers_url":"https://api.github.com/users/emilbayes/followers","following_url":"https://api.github.com/users/emilbayes/following{/other_user}","gists_url":"https://api.github.com/users/emilbayes/gists{/gist_id}","starred_url":"https://api.github.com/users/emilbayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilbayes/subscriptions","organizations_url":"https://api.github.com/users/emilbayes/orgs","repos_url":"https://api.github.com/users/emilbayes/repos","events_url":"https://api.github.com/users/emilbayes/events{/privacy}","received_events_url":"https://api.github.com/users/emilbayes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-08T08:17:00Z","updated_at":"2015-09-19T12:16:48Z","closed_at":"2015-09-19T12:01:01Z","pull_request":{"url":"https://api.github.com/repos/beaugunderson/node-poisson-disc-sampler/pulls/1","html_url":"https://github.com/beaugunderson/node-poisson-disc-sampler/pull/1","diff_url":"https://github.com/beaugunderson/node-poisson-disc-sampler/pull/1.diff","patch_url":"https://github.com/beaugunderson/node-poisson-disc-sampler/pull/1.patch"},"body":"Add the option to swap out the random number generator used, ie. swap `Math.random` for [`XorShift`](https://github.com/AndreasMadsen/xorshift). Since Math.random doesn't allow one to set a seed it is impossible to make reproducible results.\r\n\r\nNow one can: \r\n```\r\nvar poissonDiscSampler = require('poisson-disc-sampler`);\r\nvar XorShift = require('xorshift').constructor;\r\n\r\nvar sampler = poissonDiscSampler(200, 200, 50, new XorShift([1, 0, 2, 0]));\r\n\r\nsampler();\r\n```\r\n\r\nIt will still default to `Math.random`."},"comment":{"url":"https://api.github.com/repos/beaugunderson/node-poisson-disc-sampler/issues/comments/141659926","html_url":"https://github.com/beaugunderson/node-poisson-disc-sampler/pull/1#issuecomment-141659926","issue_url":"https://api.github.com/repos/beaugunderson/node-poisson-disc-sampler/issues/1","id":141659926,"user":{"login":"beaugunderson","id":61791,"avatar_url":"https://avatars.githubusercontent.com/u/61791?v=3","gravatar_id":"","url":"https://api.github.com/users/beaugunderson","html_url":"https://github.com/beaugunderson","followers_url":"https://api.github.com/users/beaugunderson/followers","following_url":"https://api.github.com/users/beaugunderson/following{/other_user}","gists_url":"https://api.github.com/users/beaugunderson/gists{/gist_id}","starred_url":"https://api.github.com/users/beaugunderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beaugunderson/subscriptions","organizations_url":"https://api.github.com/users/beaugunderson/orgs","repos_url":"https://api.github.com/users/beaugunderson/repos","events_url":"https://api.github.com/users/beaugunderson/events{/privacy}","received_events_url":"https://api.github.com/users/beaugunderson/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T12:16:48Z","updated_at":"2015-09-19T12:16:48Z","body":"@emilbayes thanks for the reminder; I added a test and released as 1.1.0 just now. :)"}}