Skip to content

Commit 1795f18

Browse files
author
Ramya Darapuneni
committed
Replacing myrand() with rand()
Fix for #22
1 parent af4f708 commit 1795f18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

encryption.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static uint32_t GetRandomValue(uint32_t maxValue)
319319

320320
do
321321
{
322-
returnValue = (myrand() / (int)(((unsigned)RAND_MAX + 1) / maxValue));
322+
returnValue = (rand() / (int)(((unsigned)RAND_MAX + 1) / maxValue));
323323
} while (returnValue > maxValue);
324324

325325
return returnValue;
@@ -642,4 +642,4 @@ void AesGcmEncryptionContext::AesGcm256Decrypt(unsigned char* gcm_pt, int& pt_le
642642
EVP_CIPHER_CTX_free(ctx);
643643

644644
pt_len = outlen + tmplen;
645-
}
645+
}

0 commit comments

Comments
 (0)