| @@ -1611,7 +1611,6 @@ SYSTEM_FUNCS=" | |||||
| clock_gettime | clock_gettime | ||||
| closesocket | closesocket | ||||
| CommandLineToArgvW | CommandLineToArgvW | ||||
| CryptGenRandom | |||||
| fcntl | fcntl | ||||
| getaddrinfo | getaddrinfo | ||||
| gethrtime | gethrtime | ||||
| @@ -1706,6 +1705,7 @@ HAVE_LIST=" | |||||
| vaapi_drm | vaapi_drm | ||||
| vaapi_x11 | vaapi_x11 | ||||
| vdpau_x11 | vdpau_x11 | ||||
| wincrypt | |||||
| " | " | ||||
| # options emitted with CONFIG_ prefix but not available on the command line | # options emitted with CONFIG_ prefix but not available on the command line | ||||
| @@ -23,7 +23,7 @@ | |||||
| #if HAVE_UNISTD_H | #if HAVE_UNISTD_H | ||||
| #include <unistd.h> | #include <unistd.h> | ||||
| #endif | #endif | ||||
| #if HAVE_CRYPTGENRANDOM | |||||
| #if HAVE_WINCRYPT | |||||
| #include <windows.h> | #include <windows.h> | ||||
| #include <wincrypt.h> | #include <wincrypt.h> | ||||
| #endif | #endif | ||||
| @@ -96,7 +96,7 @@ uint32_t av_get_random_seed(void) | |||||
| { | { | ||||
| uint32_t seed; | uint32_t seed; | ||||
| #if HAVE_CRYPTGENRANDOM | |||||
| #if HAVE_WINCRYPT | |||||
| HCRYPTPROV provider; | HCRYPTPROV provider; | ||||
| if (CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, | if (CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, | ||||
| CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) { | CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) { | ||||