mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
hidden-input-field: add seed for random colors in hidden input field outline (#125)
This commit is contained in:
parent
f9fe60c7eb
commit
19d7844f04
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue