]> git.lizzy.rs Git - rust.git/commit
Use BCryptGenRandom instead of RtlGenRandom on Windows.
authorMara Bos <m-ou.se@m-ou.se>
Sun, 11 Apr 2021 12:55:47 +0000 (14:55 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Fri, 15 Oct 2021 11:22:28 +0000 (13:22 +0200)
commit1ed123828c97d9f7e031a9caee02e340295ef21e
tree2bd1ce81c70bf01eb17e303c109004e094d61004
parent9475e609b8458fff9e444934a6017d2e590642cf
Use BCryptGenRandom instead of RtlGenRandom on Windows.

BCryptGenRandom isn't available on XP, but we dropped XP support a while
ago.
library/std/src/sys/windows/c.rs
library/std/src/sys/windows/rand.rs