mirror of
https://github.com/espressif/openthread.git
synced 2026-09-16 06:00:13 +00:00
[efr32] random number generation fix (#3367)
This commit is contained in:
committed by
Jonathan Hui
parent
28cf269481
commit
2c866feb48
@@ -70,11 +70,13 @@ void efr32RandomInit(void)
|
||||
|
||||
uint32_t otPlatRandomGet(void)
|
||||
{
|
||||
uint8_t tmp = 0;
|
||||
uint8_t tmp;
|
||||
uint32_t random = 0;
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
tmp = 0;
|
||||
|
||||
for (int j = 0; j < 3; j++)
|
||||
{
|
||||
ADC_Start(ADC0, adcStartSingle);
|
||||
|
||||
Reference in New Issue
Block a user