diff --git a/configure b/configure index 51b52744c03233118af62a4ba5c59d3382882172..75f9fa91ebeb3f1c4c0796afa13fdd3b1282b383 100755 --- a/configure +++ b/configure @@ -1611,7 +1611,6 @@ SYSTEM_FUNCS=" clock_gettime closesocket CommandLineToArgvW - CryptGenRandom fcntl getaddrinfo gethrtime @@ -1706,6 +1705,7 @@ HAVE_LIST=" vaapi_drm vaapi_x11 vdpau_x11 + wincrypt " # options emitted with CONFIG_ prefix but not available on the command line diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c index 5bbdf38ec2d7d7fa5e7998057b18cee9b7f1d6a5..089d883916e89b1a68df973a264e380af0b870dd 100644 --- a/libavutil/random_seed.c +++ b/libavutil/random_seed.c @@ -23,7 +23,7 @@ #if HAVE_UNISTD_H #include <unistd.h> #endif -#if HAVE_CRYPTGENRANDOM +#if HAVE_WINCRYPT #include <windows.h> #include <wincrypt.h> #endif @@ -96,7 +96,7 @@ uint32_t av_get_random_seed(void) { uint32_t seed; -#if HAVE_CRYPTGENRANDOM +#if HAVE_WINCRYPT HCRYPTPROV provider; if (CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {