hidden-input-field: add seed for random colors in hidden input field outline (#125)

This commit is contained in:
p4rfait 2024-03-03 16:55:27 -06:00 committed by GitHub
parent f9fe60c7eb
commit 19d7844f04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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;