From 85d347b1df1b4a377c897fdfe549948f8e2e7e96 Mon Sep 17 00:00:00 2001 From: technyon Date: Sat, 6 May 2023 18:53:35 +0200 Subject: [PATCH] call srand() on build html --- NukiWrapper.cpp | 2 +- WebCfgServer.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NukiWrapper.cpp b/NukiWrapper.cpp index c52f977..a5df745 100644 --- a/NukiWrapper.cpp +++ b/NukiWrapper.cpp @@ -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) ? diff --git a/WebCfgServer.cpp b/WebCfgServer.cpp index 3de2bc1..c5c3ccc 100644 --- a/WebCfgServer.cpp +++ b/WebCfgServer.cpp @@ -1000,6 +1000,8 @@ void WebCfgServer::buildHtmlHeader(String &response) // response.concat(""); response.concat(""); response.concat("NUKI Hub"); + + srand(millis()); } void WebCfgServer::printInputField(String& response,