VMS: only use the high precision on VMS v8.4 and up

Fixes #8487
Amends #7230

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8488)

(cherry picked from commit 355417eb46)
This commit is contained in:
Dr. Matthias St. Pierre 2019-03-15 01:48:51 +01:00
parent 45956011b9
commit b8caae27f1

View file

@ -507,7 +507,11 @@ int rand_pool_add_additional_data(RAND_POOL *pool)
* concurrently (which is the case for the <master> drbg). * concurrently (which is the case for the <master> drbg).
*/ */
data.tid = CRYPTO_THREAD_get_current_id(); data.tid = CRYPTO_THREAD_get_current_id();
#if __CRTL_VER >= 80400000
sys$gettim_prec(&data.time); sys$gettim_prec(&data.time);
#else
sys$gettim((void*)&data.time);
#endif
return rand_pool_add(pool, (unsigned char *)&data, sizeof(data), 0); return rand_pool_add(pool, (unsigned char *)&data, sizeof(data), 0);
} }