mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +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();
|
uint32_t seed = esp_random();
|
||||||
LOG_DEBUG("Setting random seed %u\n", seed);
|
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("Total heap: %d\n", ESP.getHeapSize());
|
||||||
LOG_DEBUG("Free heap: %d\n", ESP.getFreeHeap());
|
LOG_DEBUG("Free heap: %d\n", ESP.getFreeHeap());
|
||||||
|
Loading…
Reference in New Issue
Block a user