summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2017-09-26 18:24:24 +0200
committerDiego Biurrun <diego@biurrun.de>2017-10-12 20:04:18 +0200
commit7ac092d05de487d088bc96ab4a7bd6207fbfa98c (patch)
tree3673901cbefbf1c2f320ae5639ae6a6f354a8f73
parent93797681c2310faeeb0158f66f471965213904c6 (diff)
downloadffmpeg-streaming-7ac092d05de487d088bc96ab4a7bd6207fbfa98c.zip
ffmpeg-streaming-7ac092d05de487d088bc96ab4a7bd6207fbfa98c.tar.gz
build: CryptGenRandom --> wincrypt, it is a better name
-rwxr-xr-xconfigure2
-rw-r--r--libavutil/random_seed.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 51b5274..75f9fa9 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 5bbdf38..089d883 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)) {
OpenPOWER on IntegriCloud