Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1795f18

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎encryption.cpp

+2-2
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)
Please sign in to comment.