---
 configure               | 2 +-
 libavutil/random_seed.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index 416e825213..0d99e11c22 100755
--- a/configure
+++ b/configure
@@ -1607,7 +1607,6 @@ SYSTEM_FUNCS="
     clock_gettime
     closesocket
     CommandLineToArgvW
-    CryptGenRandom
     fcntl
     getaddrinfo
     gethrtime
@@ -1702,6 +1701,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 5bbdf38ec2..089d883916 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)) {
-- 
2.11.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to