Skip to content

Commit

Permalink
hidden-input-field: add seed for random colors in hidden input field …
Browse files Browse the repository at this point in the history
…outline (#125)
  • Loading branch information
p4rfait authored Mar 3, 2024
1 parent f9fe60c commit 19d7844
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/widgets/PasswordInputField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ void CPasswordInputField::updateHiddenInputState() {
// randomize new thang
hiddenInputState.lastPasswordLength = g_pHyprlock->getPasswordBufferLen();

srand(std::chrono::system_clock::now().time_since_epoch().count());
float r1 = (rand() % 100) / 255.0;
float r2 = (rand() % 100) / 255.0;
int r3 = rand() % 3;
Expand Down

0 comments on commit 19d7844

Please sign in to comment.