Skip to content

Commit

Permalink
Fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
korone00 committed Sep 13, 2023
1 parent 1e8a35d commit 5b4cff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PasswordLineEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ void PasswordOptionsPopup::generatePassword()
result.resize(length);

// Create a distribution based on the pool size
std::uniform_int_distribution<char> distribution(0, pool.size() - 1);
std::uniform_int_distribution<int> distribution(0, static_cast<int>(pool.size() - 1));

//Fill the password with random characters
for (int i = 0; i < length; i++)
Expand Down

0 comments on commit 5b4cff3

Please sign in to comment.