mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 01:16:55 +00:00
Remove call to randomSeed() (#2374)
This function causes the new arduino-esp32 core to revert to the pseudorandom behavior specified in Arduino. Calls to random() automatically use esp_random() if randomSeed or useRealRandomGenerator(false) aren't called. Tentative fix for #2357
This commit is contained in:
parent
5cb1f96240
commit
958d2cf630
@ -85,7 +85,6 @@ void esp32Setup()
|
||||
{
|
||||
uint32_t seed = esp_random();
|
||||
LOG_DEBUG("Setting random seed %u\n", seed);
|
||||
randomSeed(seed); // ESP docs say this is fairly random
|
||||
|
||||
LOG_DEBUG("Total heap: %d\n", ESP.getHeapSize());
|
||||
LOG_DEBUG("Free heap: %d\n", ESP.getFreeHeap());
|
||||
@ -221,4 +220,4 @@ void cpuDeepSleep(uint64_t msecToWake)
|
||||
|
||||
esp_sleep_enable_timer_wakeup(msecToWake * 1000ULL); // call expects usecs
|
||||
esp_deep_sleep_start(); // TBD mA sleep current (battery)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user