Trust another safe arc4random() implementation

This commit is contained in:
Frank Denis 2019-03-26 13:44:28 +01:00
parent 8f8d060e11
commit 01ed4737af
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ BOOLEAN NTAPI RtlGenRandom(PVOID RandomBuffer, ULONG RandomBufferLength);
#define SALSA20_RANDOM_BLOCK_SIZE crypto_core_salsa20_OUTPUTBYTES #define SALSA20_RANDOM_BLOCK_SIZE crypto_core_salsa20_OUTPUTBYTES
#if defined(__OpenBSD__) || defined(__CloudABI__) #if defined(__OpenBSD__) || defined(__CloudABI__) || defined(__wasi__)
# define HAVE_SAFE_ARC4RANDOM 1 # define HAVE_SAFE_ARC4RANDOM 1
#endif #endif

View File

@ -72,7 +72,7 @@ BOOLEAN NTAPI RtlGenRandom(PVOID RandomBuffer, ULONG RandomBufferLength);
# pragma comment(lib, "advapi32.lib") # pragma comment(lib, "advapi32.lib")
#endif #endif
#if defined(__OpenBSD__) || defined(__CloudABI__) #if defined(__OpenBSD__) || defined(__CloudABI__) || defined(__wasi__)
# define HAVE_SAFE_ARC4RANDOM 1 # define HAVE_SAFE_ARC4RANDOM 1
#endif #endif