diff --git a/fips/rand/fingerprint.sha1 b/fips/rand/fingerprint.sha1 index fe576ad6e..19221c2e2 100644 --- a/fips/rand/fingerprint.sha1 +++ b/fips/rand/fingerprint.sha1 @@ -1,2 +1,2 @@ -HMAC-SHA1(fips_rand.c)= 9bf5f5a42a150f5499071c34addab1f351f611ce +HMAC-SHA1(fips_rand.c)= 204f93068be19786849b817d8f33d500e7cef1d2 HMAC-SHA1(fips_rand.h)= 0567b1fe9b0efe034a537f335659b0b681809791 diff --git a/fips/rand/fips_rand.c b/fips/rand/fips_rand.c index e4607c960..b78042b1d 100644 --- a/fips/rand/fips_rand.c +++ b/fips/rand/fips_rand.c @@ -51,11 +51,17 @@ * This is a FIPS approved PRNG, ANSI X9.31 A.2.4. */ +#include "e_os.h" + +/* If we don't define _XOPEN_SOURCE_EXTENDED, struct timeval won't + be defined and gettimeofday() won't be declared with strict compilers + like DEC C in ANSI C mode. */ +#define _XOPEN_SOURCE_EXTENDED + #include #include #include #include -#include "e_os.h" #ifndef OPENSSL_SYS_WIN32 #include #endif