Browse Source

build: CryptGenRandom --> wincrypt, it is a better name

tags/n4.0
Diego Biurrun 7 years ago
parent
commit
7ac092d05d
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      configure
  2. +2
    -2
      libavutil/random_seed.c

+ 1
- 1
configure View File

@@ -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


+ 2
- 2
libavutil/random_seed.c View File

@@ -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)) {


Loading…
Cancel
Save