Merge commit '7ac092d05de487d088bc96ab4a7bd6207fbfa98c'

* commit '7ac092d05de487d088bc96ab4a7bd6207fbfa98c':
  build: CryptGenRandom --> wincrypt, it is a better name

Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2017-11-11 16:53:19 -03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@
#if HAVE_IO_H
#include <io.h>
#endif
#if HAVE_CRYPTGENRANDOM
#if HAVE_WINCRYPT
#include <windows.h>
#include <wincrypt.h>
#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)) {