diff options
| author | Roy Frostig <[email protected]> | 2010-07-25 22:05:39 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-07-25 22:05:39 -0700 |
| commit | b9f82d85f91169619064faf159cd33b4d7b3f353 (patch) | |
| tree | 7354fdeb708cbb4ab7a307286b4b89e17c1d6a8b /src/rt/rust_util.h | |
| parent | Expose an RNG (the one used by our runtime) to Rust via std. (diff) | |
| download | rust-b9f82d85f91169619064faf159cd33b4d7b3f353.tar.xz rust-b9f82d85f91169619064faf159cd33b4d7b3f353.zip | |
Attempt number 1 at extinguishing the windows tree remotely (apologies to those hacking on Sunday evening PST).
Diffstat (limited to 'src/rt/rust_util.h')
| -rw-r--r-- | src/rt/rust_util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_util.h b/src/rt/rust_util.h index 95010f17..42082119 100644 --- a/src/rt/rust_util.h +++ b/src/rt/rust_util.h @@ -127,15 +127,15 @@ isaac_init(rust_dom *dom, randctx *rctx) #ifdef __WIN32__ { HCRYPTPROV hProv; - win32_require + dom->win32_require (_T("CryptAcquireContext"), CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT|CRYPT_SILENT)); - win32_require + dom->win32_require (_T("CryptGenRandom"), CryptGenRandom(hProv, sizeof(rctx->randrsl), (BYTE*)(&rctx->randrsl))); - win32_require + dom->win32_require (_T("CryptReleaseContext"), CryptReleaseContext(hProv, 0)); } |