mirror of
https://github.com/json-c/json-c.git
synced 2026-04-02 20:09:06 +08:00
1.make it can been compiled with Visual Studio 2010
2.replace json_object_get/put API with json_object_retain/release, as they operate the reference counter, and confused with array_list_get/put_idx. 3.replace array_list_get/put_idx API with array_list_get/insert to make them more clear to use.
This commit is contained in:
@@ -186,11 +186,11 @@ static int get_dev_random_seed()
|
||||
|
||||
static int get_cryptgenrandom_seed()
|
||||
{
|
||||
DEBUG_SEED("get_cryptgenrandom_seed");
|
||||
|
||||
HCRYPTPROV hProvider = 0;
|
||||
int r;
|
||||
|
||||
DEBUG_SEED("get_cryptgenrandom_seed");
|
||||
|
||||
if (!CryptAcquireContextW(&hProvider, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
|
||||
fprintf(stderr, "error CryptAcquireContextW");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user