aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-05-12 15:14:30 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-05-12 15:14:30 +0300
commit2d799097ca8467f27c684ba36152ff4e83c6ad28 (patch)
tree023ca29ac16e5a9198920eaeb1e9dea59544e9b3 /src/crypto
parentstarted WalletListener (diff)
parentMerge pull request #826 (diff)
downloadmonero-2d799097ca8467f27c684ba36152ff4e83c6ad28.tar.xz
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/random.c b/src/crypto/random.c
index d7fcb7e65..f8a50d850 100644
--- a/src/crypto/random.c
+++ b/src/crypto/random.c
@@ -45,7 +45,7 @@ static void generate_system_random_bytes(size_t n, void *result);
static void generate_system_random_bytes(size_t n, void *result) {
HCRYPTPROV prov;
-#define must_succeed(x) do if (!(x)) assert(0); while (0)
+#define must_succeed(x) do if (!(x)) abort(); while (0)
must_succeed(CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT));
must_succeed(CryptGenRandom(prov, (DWORD)n, result));
must_succeed(CryptReleaseContext(prov, 0));