exchangeid: use higher resolution client verifier

use GetTickCount64() for EXCHANGE_ID's client verifier instead of time().  the higher resolution helps prevent conflicting verifiers

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2011-08-15 11:57:38 -04:00 committed by unknown
parent 14d2b30c2c
commit bd21801819

View file

@ -482,11 +482,10 @@ int nfs41_client_owner(
HCRYPTHASH hash; HCRYPTHASH hash;
PBYTE buffer; PBYTE buffer;
DWORD length; DWORD length;
const time_t time_created = time(NULL); const ULONGLONG time_created = GetTickCount64();
int status; int status;
/* owner.verifier = "time created" */ /* owner.verifier = "time created" */
ZeroMemory(owner->co_verifier, sizeof(owner->co_verifier));
memcpy(owner->co_verifier, &time_created, sizeof(time_created)); memcpy(owner->co_verifier, &time_created, sizeof(time_created));
/* set up the md5 hash generator */ /* set up the md5 hash generator */