{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rand/issues/260","repository_url":"https://api.github.com/repos/rust-lang-nursery/rand","labels_url":"https://api.github.com/repos/rust-lang-nursery/rand/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rand/issues/260/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rand/issues/260/events","html_url":"https://github.com/rust-lang-nursery/rand/issues/260","id":296960939,"number":260,"title":"[Windows] Replace CryptGenRandom with BCryptGenRandom","user":{"login":"AronParker","id":2510861,"avatar_url":"https://avatars3.githubusercontent.com/u/2510861?v=4","gravatar_id":"","url":"https://api.github.com/users/AronParker","html_url":"https://github.com/AronParker","followers_url":"https://api.github.com/users/AronParker/followers","following_url":"https://api.github.com/users/AronParker/following{/other_user}","gists_url":"https://api.github.com/users/AronParker/gists{/gist_id}","starred_url":"https://api.github.com/users/AronParker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AronParker/subscriptions","organizations_url":"https://api.github.com/users/AronParker/orgs","repos_url":"https://api.github.com/users/AronParker/repos","events_url":"https://api.github.com/users/AronParker/events{/privacy}","received_events_url":"https://api.github.com/users/AronParker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-14T03:04:24Z","updated_at":"2018-02-15T03:55:30Z","closed_at":null,"author_association":"NONE","body":"CryptGenRandom is currently marked as deprecated:\r\nhttps://msdn.microsoft.com/en-us/library/windows/desktop/aa379942(v=vs.85).aspx\r\n\r\nIt has been replaced with:\r\nhttps://msdn.microsoft.com/en-us/library/windows/desktop/aa375458(v=vs.85).aspx\r\n\r\nThe new API is compatible with Vista+ and additionally since [Rust officially only supports Windows 7](https://forge.rust-lang.org/platform-support.html) afaik, you could even take a little shortcut by passing the flag *BCRYPT_USE_SYSTEM_PREFERRED_RNG*, which enables omitting *hAlgorithm* and therefore requires no additional handles."},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/rand/issues/comments/365818921","html_url":"https://github.com/rust-lang-nursery/rand/issues/260#issuecomment-365818921","issue_url":"https://api.github.com/repos/rust-lang-nursery/rand/issues/260","id":365818921,"user":{"login":"retep998","id":666308,"avatar_url":"https://avatars1.githubusercontent.com/u/666308?v=4","gravatar_id":"","url":"https://api.github.com/users/retep998","html_url":"https://github.com/retep998","followers_url":"https://api.github.com/users/retep998/followers","following_url":"https://api.github.com/users/retep998/following{/other_user}","gists_url":"https://api.github.com/users/retep998/gists{/gist_id}","starred_url":"https://api.github.com/users/retep998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retep998/subscriptions","organizations_url":"https://api.github.com/users/retep998/orgs","repos_url":"https://api.github.com/users/retep998/repos","events_url":"https://api.github.com/users/retep998/events{/privacy}","received_events_url":"https://api.github.com/users/retep998/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T03:55:30Z","updated_at":"2018-02-15T03:55:30Z","author_association":"CONTRIBUTOR","body":"While the compiler itself has a minimum version of Windows 7, the standard library tries to run on Windows XP, even if not everything is usable. It would be unfortunate if `rand` could not be used by projects targeting Windows Vista/XP, given how `rand` is such a common transitive dependency."}}
{"actor":{"display_login":"retep998"}}