{"action":"created","comment":{"url":"https://api.github.com/repos/mono/MonoGame/pulls/comments/48860984","id":48860984,"diff_hunk":"@@ -0,0 +1,386 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Text;\n+\n+namespace Microsoft.Xna.Framework\n+{\n+    public static partial class MathHelper\n+    {\n+        /// <summary>\n+        /// Class for generating random numbers consistently when using Mono or Microsoft compilers.\n+        /// </summary>\n+        public class Random","path":"MonoGame.Framework/Random.cs","position":13,"original_position":13,"commit_id":"2680f5db12a4e5397356279819c65a803a545954","original_commit_id":"2680f5db12a4e5397356279819c65a803a545954","user":{"login":"hach-que","id":504826,"avatar_url":"https://avatars.githubusercontent.com/u/504826?v=3","gravatar_id":"","url":"https://api.github.com/users/hach-que","html_url":"https://github.com/hach-que","followers_url":"https://api.github.com/users/hach-que/followers","following_url":"https://api.github.com/users/hach-que/following{/other_user}","gists_url":"https://api.github.com/users/hach-que/gists{/gist_id}","starred_url":"https://api.github.com/users/hach-que/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hach-que/subscriptions","organizations_url":"https://api.github.com/users/hach-que/orgs","repos_url":"https://api.github.com/users/hach-que/repos","events_url":"https://api.github.com/users/hach-que/events{/privacy}","received_events_url":"https://api.github.com/users/hach-que/received_events","type":"User","site_admin":false},"body":"+1 for not having it as a nested class.  If it's a nested class there's no\nway of pushing it into the global namespace with a \"using\" block AFAIK.\n\nOn Wed, Jan 6, 2016, 02:55 KonajuGames <notifications@github.com> wrote:\n\n> In MonoGame.Framework/Random.cs\n> <https://github.com/mono/MonoGame/pull/3789#discussion_r48859224>:\n>\n> > @@ -0,0 +1,386 @@\n> > +﻿using System;\n> > +using System.Collections.Generic;\n> > +using System.Linq;\n> > +using System.Text;\n> > +\n> > +namespace Microsoft.Xna.Framework\n> > +{\n> > +    public static partial class MathHelper\n> > +    {\n> > +        /// <summary>\n> > +        /// Class for generating random numbers consistently when using Mono or Microsoft compilers.\n> > +        /// </summary>\n> > +        public class Random\n>\n> The source file should have the standard MonoGame header block. See\n> https://github.com/mono/MonoGame/blob/develop/MonoGame.Framework/Utilities/Hash.cs#L1\n> for an example.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/mono/MonoGame/pull/3789/files#r48859224>.\n>\n","created_at":"2016-01-05T16:08:12Z","updated_at":"2016-01-05T16:08:12Z","html_url":"https://github.com/mono/MonoGame/pull/3789#discussion_r48860984","pull_request_url":"https://api.github.com/repos/mono/MonoGame/pulls/3789","_links":{"self":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/comments/48860984"},"html":{"href":"https://github.com/mono/MonoGame/pull/3789#discussion_r48860984"},"pull_request":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/3789"}}},"pull_request":{"url":"https://api.github.com/repos/mono/MonoGame/pulls/3789","id":34419263,"html_url":"https://github.com/mono/MonoGame/pull/3789","diff_url":"https://github.com/mono/MonoGame/pull/3789.diff","patch_url":"https://github.com/mono/MonoGame/pull/3789.patch","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/3789","number":3789,"state":"open","locked":false,"title":"Cross-platform Random number generator","user":{"login":"WardBenjamin","id":4739008,"avatar_url":"https://avatars.githubusercontent.com/u/4739008?v=3","gravatar_id":"","url":"https://api.github.com/users/WardBenjamin","html_url":"https://github.com/WardBenjamin","followers_url":"https://api.github.com/users/WardBenjamin/followers","following_url":"https://api.github.com/users/WardBenjamin/following{/other_user}","gists_url":"https://api.github.com/users/WardBenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/WardBenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardBenjamin/subscriptions","organizations_url":"https://api.github.com/users/WardBenjamin/orgs","repos_url":"https://api.github.com/users/WardBenjamin/repos","events_url":"https://api.github.com/users/WardBenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/WardBenjamin/received_events","type":"User","site_admin":false},"body":"This fulfills https://github.com/mono/MonoGame/issues/3772, which requires a random number generator that is consistent over platforms. It contains only one utility function as of yet, `ulong MathHelper.Random.GenerateSeed()`.","created_at":"2015-04-30T00:29:39Z","updated_at":"2016-01-05T16:08:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a583681b90de0b1240ab67dd1332031ab9820869","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mono/MonoGame/pulls/3789/commits","review_comments_url":"https://api.github.com/repos/mono/MonoGame/pulls/3789/comments","review_comment_url":"https://api.github.com/repos/mono/MonoGame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/3789/comments","statuses_url":"https://api.github.com/repos/mono/MonoGame/statuses/2680f5db12a4e5397356279819c65a803a545954","head":{"label":"WardBenjamin:Random","ref":"Random","sha":"2680f5db12a4e5397356279819c65a803a545954","user":{"login":"WardBenjamin","id":4739008,"avatar_url":"https://avatars.githubusercontent.com/u/4739008?v=3","gravatar_id":"","url":"https://api.github.com/users/WardBenjamin","html_url":"https://github.com/WardBenjamin","followers_url":"https://api.github.com/users/WardBenjamin/followers","following_url":"https://api.github.com/users/WardBenjamin/following{/other_user}","gists_url":"https://api.github.com/users/WardBenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/WardBenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardBenjamin/subscriptions","organizations_url":"https://api.github.com/users/WardBenjamin/orgs","repos_url":"https://api.github.com/users/WardBenjamin/repos","events_url":"https://api.github.com/users/WardBenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/WardBenjamin/received_events","type":"User","site_admin":false},"repo":{"id":34674647,"name":"MonoGame","full_name":"WardBenjamin/MonoGame","owner":{"login":"WardBenjamin","id":4739008,"avatar_url":"https://avatars.githubusercontent.com/u/4739008?v=3","gravatar_id":"","url":"https://api.github.com/users/WardBenjamin","html_url":"https://github.com/WardBenjamin","followers_url":"https://api.github.com/users/WardBenjamin/followers","following_url":"https://api.github.com/users/WardBenjamin/following{/other_user}","gists_url":"https://api.github.com/users/WardBenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/WardBenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardBenjamin/subscriptions","organizations_url":"https://api.github.com/users/WardBenjamin/orgs","repos_url":"https://api.github.com/users/WardBenjamin/repos","events_url":"https://api.github.com/users/WardBenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/WardBenjamin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WardBenjamin/MonoGame","description":"One framework for creating powerful cross-platform games.","fork":true,"url":"https://api.github.com/repos/WardBenjamin/MonoGame","forks_url":"https://api.github.com/repos/WardBenjamin/MonoGame/forks","keys_url":"https://api.github.com/repos/WardBenjamin/MonoGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WardBenjamin/MonoGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WardBenjamin/MonoGame/teams","hooks_url":"https://api.github.com/repos/WardBenjamin/MonoGame/hooks","issue_events_url":"https://api.github.com/repos/WardBenjamin/MonoGame/issues/events{/number}","events_url":"https://api.github.com/repos/WardBenjamin/MonoGame/events","assignees_url":"https://api.github.com/repos/WardBenjamin/MonoGame/assignees{/user}","branches_url":"https://api.github.com/repos/WardBenjamin/MonoGame/branches{/branch}","tags_url":"https://api.github.com/repos/WardBenjamin/MonoGame/tags","blobs_url":"https://api.github.com/repos/WardBenjamin/MonoGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WardBenjamin/MonoGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WardBenjamin/MonoGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/WardBenjamin/MonoGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WardBenjamin/MonoGame/statuses/{sha}","languages_url":"https://api.github.com/repos/WardBenjamin/MonoGame/languages","stargazers_url":"https://api.github.com/repos/WardBenjamin/MonoGame/stargazers","contributors_url":"https://api.github.com/repos/WardBenjamin/MonoGame/contributors","subscribers_url":"https://api.github.com/repos/WardBenjamin/MonoGame/subscribers","subscription_url":"https://api.github.com/repos/WardBenjamin/MonoGame/subscription","commits_url":"https://api.github.com/repos/WardBenjamin/MonoGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/WardBenjamin/MonoGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/WardBenjamin/MonoGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/WardBenjamin/MonoGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/WardBenjamin/MonoGame/contents/{+path}","compare_url":"https://api.github.com/repos/WardBenjamin/MonoGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WardBenjamin/MonoGame/merges","archive_url":"https://api.github.com/repos/WardBenjamin/MonoGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WardBenjamin/MonoGame/downloads","issues_url":"https://api.github.com/repos/WardBenjamin/MonoGame/issues{/number}","pulls_url":"https://api.github.com/repos/WardBenjamin/MonoGame/pulls{/number}","milestones_url":"https://api.github.com/repos/WardBenjamin/MonoGame/milestones{/number}","notifications_url":"https://api.github.com/repos/WardBenjamin/MonoGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WardBenjamin/MonoGame/labels{/name}","releases_url":"https://api.github.com/repos/WardBenjamin/MonoGame/releases{/id}","created_at":"2015-04-27T15:26:50Z","updated_at":"2015-04-27T15:26:55Z","pushed_at":"2015-08-06T05:39:54Z","git_url":"git://github.com/WardBenjamin/MonoGame.git","ssh_url":"git@github.com:WardBenjamin/MonoGame.git","clone_url":"https://github.com/WardBenjamin/MonoGame.git","svn_url":"https://github.com/WardBenjamin/MonoGame","homepage":"http://www.monogame.net","size":52500,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"mono:develop","ref":"develop","sha":"773fda84aedddbd6a49526e52c5081858f493a21","user":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":1579990,"name":"MonoGame","full_name":"mono/MonoGame","owner":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mono/MonoGame","description":"One framework for creating powerful cross-platform games.","fork":false,"url":"https://api.github.com/repos/mono/MonoGame","forks_url":"https://api.github.com/repos/mono/MonoGame/forks","keys_url":"https://api.github.com/repos/mono/MonoGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/MonoGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/MonoGame/teams","hooks_url":"https://api.github.com/repos/mono/MonoGame/hooks","issue_events_url":"https://api.github.com/repos/mono/MonoGame/issues/events{/number}","events_url":"https://api.github.com/repos/mono/MonoGame/events","assignees_url":"https://api.github.com/repos/mono/MonoGame/assignees{/user}","branches_url":"https://api.github.com/repos/mono/MonoGame/branches{/branch}","tags_url":"https://api.github.com/repos/mono/MonoGame/tags","blobs_url":"https://api.github.com/repos/mono/MonoGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/MonoGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/MonoGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/MonoGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/MonoGame/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/MonoGame/languages","stargazers_url":"https://api.github.com/repos/mono/MonoGame/stargazers","contributors_url":"https://api.github.com/repos/mono/MonoGame/contributors","subscribers_url":"https://api.github.com/repos/mono/MonoGame/subscribers","subscription_url":"https://api.github.com/repos/mono/MonoGame/subscription","commits_url":"https://api.github.com/repos/mono/MonoGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/MonoGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/MonoGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/MonoGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/MonoGame/contents/{+path}","compare_url":"https://api.github.com/repos/mono/MonoGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/MonoGame/merges","archive_url":"https://api.github.com/repos/mono/MonoGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/MonoGame/downloads","issues_url":"https://api.github.com/repos/mono/MonoGame/issues{/number}","pulls_url":"https://api.github.com/repos/mono/MonoGame/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/MonoGame/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/MonoGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/MonoGame/labels{/name}","releases_url":"https://api.github.com/repos/mono/MonoGame/releases{/id}","created_at":"2011-04-07T00:23:40Z","updated_at":"2016-01-05T11:48:37Z","pushed_at":"2016-01-05T14:28:43Z","git_url":"git://github.com/mono/MonoGame.git","ssh_url":"git@github.com:mono/MonoGame.git","clone_url":"https://github.com/mono/MonoGame.git","svn_url":"https://github.com/mono/MonoGame","homepage":"http://www.monogame.net","size":330856,"stargazers_count":3105,"watchers_count":3105,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1682,"mirror_url":null,"open_issues_count":695,"forks":1682,"open_issues":695,"watchers":3105,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/3789"},"html":{"href":"https://github.com/mono/MonoGame/pull/3789"},"issue":{"href":"https://api.github.com/repos/mono/MonoGame/issues/3789"},"comments":{"href":"https://api.github.com/repos/mono/MonoGame/issues/3789/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/3789/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/MonoGame/pulls/3789/commits"},"statuses":{"href":"https://api.github.com/repos/mono/MonoGame/statuses/2680f5db12a4e5397356279819c65a803a545954"}}}}