call srand() on build html

This commit is contained in:
technyon
2023-05-06 18:53:35 +02:00
parent 1155dc47c6
commit 85d347b1df
2 changed files with 3 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ void NukiWrapper::update()
{
if (!_paired)
{
Log->println(F("Nuki start pairing"));
Log->println(F("Nuki lock start pairing"));
_network->publishBleAddress("");
Nuki::AuthorizationIdType idType = _preferences->getBool(preference_register_as_app) ?

View File

@@ -1000,6 +1000,8 @@ void WebCfgServer::buildHtmlHeader(String &response)
// response.concat("</style>");
response.concat("<link rel='stylesheet' href='/style.css'>");
response.concat("<TITLE>NUKI Hub</TITLE></HEAD><BODY>");
srand(millis());
}
void WebCfgServer::printInputField(String& response,