{"action":"created","issue":{"url":"https://api.github.com/repos/mongodb/bson-ruby/issues/51","labels_url":"https://api.github.com/repos/mongodb/bson-ruby/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/mongodb/bson-ruby/issues/51/comments","events_url":"https://api.github.com/repos/mongodb/bson-ruby/issues/51/events","html_url":"https://github.com/mongodb/bson-ruby/pull/51","id":121937343,"number":51,"title":"Initialize ObjectId counter to a random value","user":{"login":"alethea","id":4101392,"avatar_url":"https://avatars.githubusercontent.com/u/4101392?v=3","gravatar_id":"","url":"https://api.github.com/users/alethea","html_url":"https://github.com/alethea","followers_url":"https://api.github.com/users/alethea/followers","following_url":"https://api.github.com/users/alethea/following{/other_user}","gists_url":"https://api.github.com/users/alethea/gists{/gist_id}","starred_url":"https://api.github.com/users/alethea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alethea/subscriptions","organizations_url":"https://api.github.com/users/alethea/orgs","repos_url":"https://api.github.com/users/alethea/repos","events_url":"https://api.github.com/users/alethea/events{/privacy}","received_events_url":"https://api.github.com/users/alethea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-13T19:11:15Z","updated_at":"2015-12-22T15:31:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mongodb/bson-ruby/pulls/51","html_url":"https://github.com/mongodb/bson-ruby/pull/51","diff_url":"https://github.com/mongodb/bson-ruby/pull/51.diff","patch_url":"https://github.com/mongodb/bson-ruby/pull/51.patch"},"body":"The [ObjectId spec](https://docs.mongodb.org/v3.0/reference/object-id/) says the counter should be initialized to a random value. Initialize the counter using Ruby's `Kernel#rand` in both the native extension and the pure Ruby implementation."},"comment":{"url":"https://api.github.com/repos/mongodb/bson-ruby/issues/comments/166647699","html_url":"https://github.com/mongodb/bson-ruby/pull/51#issuecomment-166647699","issue_url":"https://api.github.com/repos/mongodb/bson-ruby/issues/51","id":166647699,"user":{"login":"alethea","id":4101392,"avatar_url":"https://avatars.githubusercontent.com/u/4101392?v=3","gravatar_id":"","url":"https://api.github.com/users/alethea","html_url":"https://github.com/alethea","followers_url":"https://api.github.com/users/alethea/followers","following_url":"https://api.github.com/users/alethea/following{/other_user}","gists_url":"https://api.github.com/users/alethea/gists{/gist_id}","starred_url":"https://api.github.com/users/alethea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alethea/subscriptions","organizations_url":"https://api.github.com/users/alethea/orgs","repos_url":"https://api.github.com/users/alethea/repos","events_url":"https://api.github.com/users/alethea/events{/privacy}","received_events_url":"https://api.github.com/users/alethea/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T15:31:09Z","updated_at":"2015-12-22T15:31:09Z","body":"Done! The initialization line now declares the counter as `0x40c37f`."}}