diff options
| author | Chris Martin <marti4d@live.ca> | 2022-05-09 12:04:53 -0400 |
|---|---|---|
| committer | Chris Martin <marti4d@live.ca> | 2022-05-10 11:30:46 -0400 |
| commit | 0c92519d01b30996594cc16832fc52f0702a4855 (patch) | |
| tree | 7e608683e1aa790f4fd601c14f03c1a1294ef6db /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | e209e85e39b4851c3ec122a45ddeabe318b2d522 (diff) | |
| download | rust-0c92519d01b30996594cc16832fc52f0702a4855.tar.gz rust-0c92519d01b30996594cc16832fc52f0702a4855.zip | |
Make HashMap fall back to RtlGenRandom if BCryptGenRandom fails
Issue #84096 changed the hashmap RNG to use BCryptGenRandom instead of RtlGenRandom on Windows. Mozilla Firefox started experiencing random failures in env_logger::Builder::new() (Issue #94098) during initialization of their unsandboxed main process with an "Access Denied" error message from BCryptGenRandom(), which is used by the HashMap contained in env_logger::Builder The root cause appears to be a virus scanner or other software interfering with BCrypt DLLs loading. This change adds a fallback option if BCryptGenRandom is unusable for whatever reason. It will fallback to RtlGenRandom in this case. Fixes #94098
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
