diff --git a/src/custom/my_custom_template.cpp b/src/custom/my_custom_template.cpp index 8c4917f4..c6cd66ac 100644 --- a/src/custom/my_custom_template.cpp +++ b/src/custom/my_custom_template.cpp @@ -46,7 +46,7 @@ void custom_get_sensors(JsonDocument& doc) JsonObject sensor = doc.createNestedObject(F("Custom")); /* Key-Value pair of the sensor value */ - sensor[F("Random")] = random(256); + sensor[F("Random")] = HASP_RANDOM(256); } void custom_topic_payload(const char* topic, const char* payload, uint8_t source){