{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/486","repository_url":"https://api.github.com/repos/OpenIDC/pyoidc","labels_url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/486/comments","events_url":"https://api.github.com/repos/OpenIDC/pyoidc/issues/486/events","html_url":"https://github.com/OpenIDC/pyoidc/issues/486","id":295893443,"number":486,"title":"SystemRandom is not imported correctly","user":{"login":"shelman","id":627463,"avatar_url":"https://avatars1.githubusercontent.com/u/627463?v=4","gravatar_id":"","url":"https://api.github.com/users/shelman","html_url":"https://github.com/shelman","followers_url":"https://api.github.com/users/shelman/followers","following_url":"https://api.github.com/users/shelman/following{/other_user}","gists_url":"https://api.github.com/users/shelman/gists{/gist_id}","starred_url":"https://api.github.com/users/shelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelman/subscriptions","organizations_url":"https://api.github.com/users/shelman/orgs","repos_url":"https://api.github.com/users/shelman/repos","events_url":"https://api.github.com/users/shelman/events{/privacy}","received_events_url":"https://api.github.com/users/shelman/received_events","type":"User","site_admin":false},"labels":[{"id":544715591,"url":"https://api.github.com/repos/OpenIDC/pyoidc/labels/bug","name":"bug","color":"b60205","default":true},{"id":619975021,"url":"https://api.github.com/repos/OpenIDC/pyoidc/labels/security","name":"security","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-09T14:43:54Z","updated_at":"2018-02-12T15:35:00Z","closed_at":"2018-02-12T15:35:00Z","author_association":"NONE","body":"In `src/oic/__init__.py`, `random.SystemRandom` is imported via the following code:\r\n```\r\ntry:\r\n    import random.SystemRandom as rnd\r\nexcept ImportError:\r\n    import random as rnd\r\n```\r\n\r\nIn both python2 and python3 this yields an import error and falls back to the `random` package.\r\n\r\nI believe the fix is to change the import to `from random import SystemRandom as rnd`. The import works locally for me but I am having some trouble with the unit tests and wanted to check in before opening a pull request."}}
{"actor":{"display_login":"tpazderka"}}