diff --git a/configure b/configure index ca5fe7153f..5461f42c9d 100755 --- a/configure +++ b/configure @@ -1992,7 +1992,6 @@ SYSTEM_FUNCS=" clock_gettime closesocket CommandLineToArgvW - CryptGenRandom fcntl getaddrinfo gethrtime @@ -2113,6 +2112,7 @@ HAVE_LIST=" vaapi_x11 vdpau_x11 winrt + 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 d1c9a3f704..881c23c8c8 100644 --- a/libavutil/random_seed.c +++ b/libavutil/random_seed.c @@ -26,7 +26,7 @@ #if HAVE_IO_H #include #endif -#if HAVE_CRYPTGENRANDOM +#if HAVE_WINCRYPT #include #include #endif @@ -121,7 +121,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)) {