every platform provides sys_random_seed() and SYS_RANDOM_SEED goes away

This commit is contained in:
nhmall
2019-01-17 18:30:56 -05:00
committed by Patric Mueller
parent 97b8d0a50b
commit 0a430cab11
11 changed files with 27 additions and 42 deletions

View File

@@ -681,7 +681,8 @@ char *name;
return;
}
#ifdef SYS_RANDOM_SEED
#include <bcrypt.h> /* Windows Crypto Next Gen (CNG) */
#ifndef STATUS_SUCCESS
#define STATUS_SUCCESS 0
#endif
@@ -692,8 +693,6 @@ char *name;
#define STATUS_UNSUCCESSFUL 0xC0000001
#endif
#include <bcrypt.h> /* Windows Crypto Next Gen (CNG) */
unsigned long
sys_random_seed(VOID_ARGS)
{
@@ -727,7 +726,6 @@ sys_random_seed(VOID_ARGS)
}
return ourseed;
}
#endif /* SYS_RANDOM_SEED */
#endif /* WIN32 */