mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Try to fix secure RNG on Windows
This commit is contained in:
parent
ad255ccfe5
commit
9b27da8e4a
|
@ -2383,7 +2383,7 @@ int secure_random_init()
|
|||
return 0;
|
||||
}
|
||||
#if defined(CONF_FAMILY_WINDOWS)
|
||||
if(CryptAcquireContext(&secure_random_data.provider, NULL, NULL, PROV_RSA_FULL, 0))
|
||||
if(CryptAcquireContext(&secure_random_data.provider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))
|
||||
{
|
||||
secure_random_data.initialized = 1;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue