{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/32953","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/32953/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/32953/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/32953/events","html_url":"https://github.com/rust-lang/rust/issues/32953","id":148380199,"number":32953,"title":"Default hashmap implementation can cause processes to block","user":{"login":"derekstraka","id":9665276,"avatar_url":"https://avatars.githubusercontent.com/u/9665276?v=3","gravatar_id":"","url":"https://api.github.com/users/derekstraka","html_url":"https://github.com/derekstraka","followers_url":"https://api.github.com/users/derekstraka/followers","following_url":"https://api.github.com/users/derekstraka/following{/other_user}","gists_url":"https://api.github.com/users/derekstraka/gists{/gist_id}","starred_url":"https://api.github.com/users/derekstraka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekstraka/subscriptions","organizations_url":"https://api.github.com/users/derekstraka/orgs","repos_url":"https://api.github.com/users/derekstraka/repos","events_url":"https://api.github.com/users/derekstraka/events{/privacy}","received_events_url":"https://api.github.com/users/derekstraka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/T-libs","name":"T-libs","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-14T14:31:00Z","updated_at":"2016-04-15T13:29:09Z","closed_at":null,"body":"When the /dev/urandom pool has not yet been initialized, the use of the default HashMap can cause a process to block.  The behavior is problematic when a program is started by an initscript and is not intended to run in the background.  The process will block until the urandom pool is initialized which on some embedded systems may be several minutes.  \r\n\r\nA concrete example of the issue in BurntSushi/docopt.rs#178, but the issue can also occur in other places like regex."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/210464317","html_url":"https://github.com/rust-lang/rust/issues/32953#issuecomment-210464317","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/32953","id":210464317,"user":{"login":"cardoe","id":8839,"avatar_url":"https://avatars.githubusercontent.com/u/8839?v=3","gravatar_id":"","url":"https://api.github.com/users/cardoe","html_url":"https://github.com/cardoe","followers_url":"https://api.github.com/users/cardoe/followers","following_url":"https://api.github.com/users/cardoe/following{/other_user}","gists_url":"https://api.github.com/users/cardoe/gists{/gist_id}","starred_url":"https://api.github.com/users/cardoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardoe/subscriptions","organizations_url":"https://api.github.com/users/cardoe/orgs","repos_url":"https://api.github.com/users/cardoe/repos","events_url":"https://api.github.com/users/cardoe/events{/privacy}","received_events_url":"https://api.github.com/users/cardoe/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T13:29:09Z","updated_at":"2016-04-15T13:29:09Z","body":"Right. That would have to get exposed via the `rand` crate which currently has no mechanism to do so. `OsRng` just wires up to the best implementation available."}}