mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-08 17:02:26 +03:00
- Use the new Crypto, TypeConversion and random() functionality added to the Arduino core, instead of the versions local to the mesh library.
- Rearrange class variables to minimize storage padding. - Add protected getters for EspnowMeshBackend and MeshBackendBase components. - Partially update README.md
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
|
||||
#include "UtilityFunctions.h"
|
||||
#include <esp8266_peri.h>
|
||||
#include <Esp.h>
|
||||
|
||||
namespace MeshUtilityFunctions
|
||||
{
|
||||
@ -43,7 +44,7 @@ namespace MeshUtilityFunctions
|
||||
|
||||
uint64_t randomUint64()
|
||||
{
|
||||
return (((uint64_t)RANDOM_REG32 << 32) | (uint64_t)RANDOM_REG32);
|
||||
return (((uint64_t)ESP.random() << 32) | (uint64_t)ESP.random());
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
Reference in New Issue
Block a user