bcrypt.odin 300 B

1234567891011
  1. // +build windows
  2. package sys_windows
  3. foreign import bcrypt "system:Bcrypt.lib"
  4. BCRYPT_USE_SYSTEM_PREFERRED_RNG: DWORD : 0x00000002
  5. @(default_calling_convention="stdcall")
  6. foreign bcrypt {
  7. BCryptGenRandom :: proc(hAlgorithm: LPVOID, pBuffer: [^]u8, cbBuffer: ULONG, dwFlags: ULONG) -> LONG ---
  8. }