mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-28 17:04:34 +00:00
12 lines
297 B
Odin
12 lines
297 B
Odin
#+build windows
|
|
package sys_windows
|
|
|
|
foreign import bcrypt "system:Bcrypt.lib"
|
|
|
|
BCRYPT_USE_SYSTEM_PREFERRED_RNG: DWORD : 0x00000002
|
|
|
|
@(default_calling_convention="system")
|
|
foreign bcrypt {
|
|
BCryptGenRandom :: proc(hAlgorithm: LPVOID, pBuffer: [^]u8, cbBuffer: ULONG, dwFlags: ULONG) -> LONG ---
|
|
}
|