diff options
| author | Chris Denton <christophersdenton@gmail.com> | 2022-09-02 13:23:52 +0100 |
|---|---|---|
| committer | Chris Denton <christophersdenton@gmail.com> | 2022-09-02 14:30:16 +0100 |
| commit | bc793c9fb2ae45b1e93cdd6ad1cd4ffe30587674 (patch) | |
| tree | ce2842a38b9889cb1072de87c5151b7a46f5f6b2 /library/std/src/sys/windows/c.rs | |
| parent | e4f049312c8547a493e618d00db7a346d35a2c98 (diff) | |
| download | rust-bc793c9fb2ae45b1e93cdd6ad1cd4ffe30587674.tar.gz rust-bc793c9fb2ae45b1e93cdd6ad1cd4ffe30587674.zip | |
Use `BCRYPT_RNG_ALG_HANDLE` by default
Also briefly document the history of `sys/windows/rand.rs` as they may be relevant to any future changes.
Diffstat (limited to 'library/std/src/sys/windows/c.rs')
| -rw-r--r-- | library/std/src/sys/windows/c.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/c.rs b/library/std/src/sys/windows/c.rs index c99c8efe436..270294d13df 100644 --- a/library/std/src/sys/windows/c.rs +++ b/library/std/src/sys/windows/c.rs @@ -285,7 +285,7 @@ pub fn nt_success(status: NTSTATUS) -> bool { status >= 0 } -pub const BCRYPT_USE_SYSTEM_PREFERRED_RNG: DWORD = 0x00000002; +pub const BCRYPT_RNG_ALG_HANDLE: usize = 0x81; #[repr(C)] pub struct UNICODE_STRING { |
