Skip to content

Commit

Permalink
use rand() instead of random() #1367
Browse files Browse the repository at this point in the history
  • Loading branch information
lingol committed Jul 26, 2024
1 parent e975310 commit e2b1e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/aes/AESCrypt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ uint32_t AESCrypt::randomItemSizeHolder(uint32_t size) {
auto ItemSizeHolderMax = ItemSizeHolders[size] - 1;

srand((unsigned) time(nullptr));
auto result = static_cast<uint32_t>(random());
auto result = static_cast<uint32_t>(rand());
result = result % (ItemSizeHolderMax - ItemSizeHolderMin + 1);
result += ItemSizeHolderMin;
return result;
Expand Down

0 comments on commit e2b1e88

Please sign in to comment.