{"action":"opened","number":229,"pull_request":{"url":"https://api.github.com/repos/erlio/vernemq/pulls/229","id":94998103,"html_url":"https://github.com/erlio/vernemq/pull/229","diff_url":"https://github.com/erlio/vernemq/pull/229.diff","patch_url":"https://github.com/erlio/vernemq/pull/229.patch","issue_url":"https://api.github.com/repos/erlio/vernemq/issues/229","number":229,"state":"open","locked":false,"title":"Make random tests reproducible via a seed","user":{"login":"larshesel","id":679187,"avatar_url":"https://avatars.githubusercontent.com/u/679187?v=3","gravatar_id":"","url":"https://api.github.com/users/larshesel","html_url":"https://github.com/larshesel","followers_url":"https://api.github.com/users/larshesel/followers","following_url":"https://api.github.com/users/larshesel/following{/other_user}","gists_url":"https://api.github.com/users/larshesel/gists{/gist_id}","starred_url":"https://api.github.com/users/larshesel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larshesel/subscriptions","organizations_url":"https://api.github.com/users/larshesel/orgs","repos_url":"https://api.github.com/users/larshesel/repos","events_url":"https://api.github.com/users/larshesel/events{/privacy}","received_events_url":"https://api.github.com/users/larshesel/received_events","type":"User","site_admin":false},"body":"This introduces a couple of helper functions:\r\n\r\n     vmq_test_utils:get_suite_rand_seed/0\r\n\r\nGenerates a seed from `os:timestamp()` for the entire suite if one is\r\nnot set via `{seed, Seed}.` in a config file passed to CT. This function\r\nshould be called from the `init_per_suite/1` function and the seed\r\nreturned should be added to the CT `Config` list. The seed will be\r\nprinted to console.\r\n\r\n     vmq_test_utils:seed_rand/1\r\n\r\nIs for use in the individual test cases to seed the rng.\r\n\r\n     vmq_test_utils:rand_bytes/1\r\n\r\nThis replaces the use of `crypto:strong_rand_bytes` in tests so random\r\nbytes will be deterministically drawn according to the seed.","created_at":"2016-11-23T12:57:10Z","updated_at":"2016-11-23T12:57:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/erlio/vernemq/pulls/229/commits","review_comments_url":"https://api.github.com/repos/erlio/vernemq/pulls/229/comments","review_comment_url":"https://api.github.com/repos/erlio/vernemq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/erlio/vernemq/issues/229/comments","statuses_url":"https://api.github.com/repos/erlio/vernemq/statuses/5761825cf28f7986c78416508f7d9c8c43bf9cb3","head":{"label":"larshesel:make-test-randomization-seedable","ref":"make-test-randomization-seedable","sha":"5761825cf28f7986c78416508f7d9c8c43bf9cb3","user":{"login":"larshesel","id":679187,"avatar_url":"https://avatars.githubusercontent.com/u/679187?v=3","gravatar_id":"","url":"https://api.github.com/users/larshesel","html_url":"https://github.com/larshesel","followers_url":"https://api.github.com/users/larshesel/followers","following_url":"https://api.github.com/users/larshesel/following{/other_user}","gists_url":"https://api.github.com/users/larshesel/gists{/gist_id}","starred_url":"https://api.github.com/users/larshesel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larshesel/subscriptions","organizations_url":"https://api.github.com/users/larshesel/orgs","repos_url":"https://api.github.com/users/larshesel/repos","events_url":"https://api.github.com/users/larshesel/events{/privacy}","received_events_url":"https://api.github.com/users/larshesel/received_events","type":"User","site_admin":false},"repo":{"id":36655104,"name":"vernemq","full_name":"larshesel/vernemq","owner":{"login":"larshesel","id":679187,"avatar_url":"https://avatars.githubusercontent.com/u/679187?v=3","gravatar_id":"","url":"https://api.github.com/users/larshesel","html_url":"https://github.com/larshesel","followers_url":"https://api.github.com/users/larshesel/followers","following_url":"https://api.github.com/users/larshesel/following{/other_user}","gists_url":"https://api.github.com/users/larshesel/gists{/gist_id}","starred_url":"https://api.github.com/users/larshesel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larshesel/subscriptions","organizations_url":"https://api.github.com/users/larshesel/orgs","repos_url":"https://api.github.com/users/larshesel/repos","events_url":"https://api.github.com/users/larshesel/events{/privacy}","received_events_url":"https://api.github.com/users/larshesel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/larshesel/vernemq","description":"A distributed MQTT message broker","fork":true,"url":"https://api.github.com/repos/larshesel/vernemq","forks_url":"https://api.github.com/repos/larshesel/vernemq/forks","keys_url":"https://api.github.com/repos/larshesel/vernemq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larshesel/vernemq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larshesel/vernemq/teams","hooks_url":"https://api.github.com/repos/larshesel/vernemq/hooks","issue_events_url":"https://api.github.com/repos/larshesel/vernemq/issues/events{/number}","events_url":"https://api.github.com/repos/larshesel/vernemq/events","assignees_url":"https://api.github.com/repos/larshesel/vernemq/assignees{/user}","branches_url":"https://api.github.com/repos/larshesel/vernemq/branches{/branch}","tags_url":"https://api.github.com/repos/larshesel/vernemq/tags","blobs_url":"https://api.github.com/repos/larshesel/vernemq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larshesel/vernemq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larshesel/vernemq/git/refs{/sha}","trees_url":"https://api.github.com/repos/larshesel/vernemq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larshesel/vernemq/statuses/{sha}","languages_url":"https://api.github.com/repos/larshesel/vernemq/languages","stargazers_url":"https://api.github.com/repos/larshesel/vernemq/stargazers","contributors_url":"https://api.github.com/repos/larshesel/vernemq/contributors","subscribers_url":"https://api.github.com/repos/larshesel/vernemq/subscribers","subscription_url":"https://api.github.com/repos/larshesel/vernemq/subscription","commits_url":"https://api.github.com/repos/larshesel/vernemq/commits{/sha}","git_commits_url":"https://api.github.com/repos/larshesel/vernemq/git/commits{/sha}","comments_url":"https://api.github.com/repos/larshesel/vernemq/comments{/number}","issue_comment_url":"https://api.github.com/repos/larshesel/vernemq/issues/comments{/number}","contents_url":"https://api.github.com/repos/larshesel/vernemq/contents/{+path}","compare_url":"https://api.github.com/repos/larshesel/vernemq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larshesel/vernemq/merges","archive_url":"https://api.github.com/repos/larshesel/vernemq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larshesel/vernemq/downloads","issues_url":"https://api.github.com/repos/larshesel/vernemq/issues{/number}","pulls_url":"https://api.github.com/repos/larshesel/vernemq/pulls{/number}","milestones_url":"https://api.github.com/repos/larshesel/vernemq/milestones{/number}","notifications_url":"https://api.github.com/repos/larshesel/vernemq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larshesel/vernemq/labels{/name}","releases_url":"https://api.github.com/repos/larshesel/vernemq/releases{/id}","deployments_url":"https://api.github.com/repos/larshesel/vernemq/deployments","created_at":"2015-06-01T10:58:17Z","updated_at":"2016-11-21T15:15:01Z","pushed_at":"2016-11-23T12:56:23Z","git_url":"git://github.com/larshesel/vernemq.git","ssh_url":"git@github.com:larshesel/vernemq.git","clone_url":"https://github.com/larshesel/vernemq.git","svn_url":"https://github.com/larshesel/vernemq","homepage":"https://verne.mq","size":7207,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"erlio:master","ref":"master","sha":"382f5c6fd95c4f86d72596dd2a230d2da63c59da","user":{"login":"erlio","id":1677717,"avatar_url":"https://avatars.githubusercontent.com/u/1677717?v=3","gravatar_id":"","url":"https://api.github.com/users/erlio","html_url":"https://github.com/erlio","followers_url":"https://api.github.com/users/erlio/followers","following_url":"https://api.github.com/users/erlio/following{/other_user}","gists_url":"https://api.github.com/users/erlio/gists{/gist_id}","starred_url":"https://api.github.com/users/erlio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erlio/subscriptions","organizations_url":"https://api.github.com/users/erlio/orgs","repos_url":"https://api.github.com/users/erlio/repos","events_url":"https://api.github.com/users/erlio/events{/privacy}","received_events_url":"https://api.github.com/users/erlio/received_events","type":"Organization","site_admin":false},"repo":{"id":36350782,"name":"vernemq","full_name":"erlio/vernemq","owner":{"login":"erlio","id":1677717,"avatar_url":"https://avatars.githubusercontent.com/u/1677717?v=3","gravatar_id":"","url":"https://api.github.com/users/erlio","html_url":"https://github.com/erlio","followers_url":"https://api.github.com/users/erlio/followers","following_url":"https://api.github.com/users/erlio/following{/other_user}","gists_url":"https://api.github.com/users/erlio/gists{/gist_id}","starred_url":"https://api.github.com/users/erlio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erlio/subscriptions","organizations_url":"https://api.github.com/users/erlio/orgs","repos_url":"https://api.github.com/users/erlio/repos","events_url":"https://api.github.com/users/erlio/events{/privacy}","received_events_url":"https://api.github.com/users/erlio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/erlio/vernemq","description":"A distributed MQTT message broker based on Erlang/OTP","fork":false,"url":"https://api.github.com/repos/erlio/vernemq","forks_url":"https://api.github.com/repos/erlio/vernemq/forks","keys_url":"https://api.github.com/repos/erlio/vernemq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erlio/vernemq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erlio/vernemq/teams","hooks_url":"https://api.github.com/repos/erlio/vernemq/hooks","issue_events_url":"https://api.github.com/repos/erlio/vernemq/issues/events{/number}","events_url":"https://api.github.com/repos/erlio/vernemq/events","assignees_url":"https://api.github.com/repos/erlio/vernemq/assignees{/user}","branches_url":"https://api.github.com/repos/erlio/vernemq/branches{/branch}","tags_url":"https://api.github.com/repos/erlio/vernemq/tags","blobs_url":"https://api.github.com/repos/erlio/vernemq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erlio/vernemq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erlio/vernemq/git/refs{/sha}","trees_url":"https://api.github.com/repos/erlio/vernemq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erlio/vernemq/statuses/{sha}","languages_url":"https://api.github.com/repos/erlio/vernemq/languages","stargazers_url":"https://api.github.com/repos/erlio/vernemq/stargazers","contributors_url":"https://api.github.com/repos/erlio/vernemq/contributors","subscribers_url":"https://api.github.com/repos/erlio/vernemq/subscribers","subscription_url":"https://api.github.com/repos/erlio/vernemq/subscription","commits_url":"https://api.github.com/repos/erlio/vernemq/commits{/sha}","git_commits_url":"https://api.github.com/repos/erlio/vernemq/git/commits{/sha}","comments_url":"https://api.github.com/repos/erlio/vernemq/comments{/number}","issue_comment_url":"https://api.github.com/repos/erlio/vernemq/issues/comments{/number}","contents_url":"https://api.github.com/repos/erlio/vernemq/contents/{+path}","compare_url":"https://api.github.com/repos/erlio/vernemq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erlio/vernemq/merges","archive_url":"https://api.github.com/repos/erlio/vernemq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erlio/vernemq/downloads","issues_url":"https://api.github.com/repos/erlio/vernemq/issues{/number}","pulls_url":"https://api.github.com/repos/erlio/vernemq/pulls{/number}","milestones_url":"https://api.github.com/repos/erlio/vernemq/milestones{/number}","notifications_url":"https://api.github.com/repos/erlio/vernemq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erlio/vernemq/labels{/name}","releases_url":"https://api.github.com/repos/erlio/vernemq/releases{/id}","deployments_url":"https://api.github.com/repos/erlio/vernemq/deployments","created_at":"2015-05-27T07:29:57Z","updated_at":"2016-11-22T10:20:29Z","pushed_at":"2016-11-22T15:19:39Z","git_url":"git://github.com/erlio/vernemq.git","ssh_url":"git@github.com:erlio/vernemq.git","clone_url":"https://github.com/erlio/vernemq.git","svn_url":"https://github.com/erlio/vernemq","homepage":"https://vernemq.com","size":7288,"stargazers_count":726,"watchers_count":726,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":13,"forks":69,"open_issues":13,"watchers":726,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/erlio/vernemq/pulls/229"},"html":{"href":"https://github.com/erlio/vernemq/pull/229"},"issue":{"href":"https://api.github.com/repos/erlio/vernemq/issues/229"},"comments":{"href":"https://api.github.com/repos/erlio/vernemq/issues/229/comments"},"review_comments":{"href":"https://api.github.com/repos/erlio/vernemq/pulls/229/comments"},"review_comment":{"href":"https://api.github.com/repos/erlio/vernemq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/erlio/vernemq/pulls/229/commits"},"statuses":{"href":"https://api.github.com/repos/erlio/vernemq/statuses/5761825cf28f7986c78416508f7d9c8c43bf9cb3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":58,"deletions":21,"changed_files":6}}
{"actor":{"display_login":"larshesel"}}