From 355417eb4611014767480e5d3e96b1b08eb02700 Mon Sep 17 00:00:00 2001 From: "Dr. Matthias St. Pierre" Date: Fri, 15 Mar 2019 01:48:51 +0100 Subject: [PATCH] VMS: only use the high precision on VMS v8.4 and up Fixes #8487 Amends #7230 Reviewed-by: Tim Hudson Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8488) --- crypto/rand/rand_vms.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/rand/rand_vms.c b/crypto/rand/rand_vms.c index c083977eab..d35106a310 100644 --- a/crypto/rand/rand_vms.c +++ b/crypto/rand/rand_vms.c @@ -507,7 +507,11 @@ int rand_pool_add_additional_data(RAND_POOL *pool) * concurrently (which is the case for the drbg). */ data.tid = CRYPTO_THREAD_get_current_id(); +#if __CRTL_VER >= 80400000 sys$gettim_prec(&data.time); +#else + sys$gettim((void*)&data.time); +#endif return rand_pool_add(pool, (unsigned char *)&data, sizeof(data), 0); } -- 2.25.1