Latest update

This commit is contained in:
2018-09-16 06:28:30 +09:00
parent 35c315d2f3
commit ebab062ce0
12 changed files with 32 additions and 88 deletions
+8 -3
View File
@@ -478,13 +478,18 @@ int rand_pool_add_nonce_data(RAND_POOL *pool)
} data = { 0 };
/*
* Add process id, thread id, and a high resolution timestamp to
* ensure that the nonce is unique whith high probability for
* different process instances.
* Add process id, thread id, and a high resolution timestamp
* (where available, which is OpenVMS v8.4 and up) to ensure that
* the nonce is unique whith high probability for different process
* instances.
*/
data.pid = getpid();
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);
}