mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
emb6: update PNRG access
This this build branch doesn't seem to be build, this slipped through back, when the PNRG functions were renamed.
This commit is contained in:
parent
ba4631798c
commit
a785ee5212
@ -20,6 +20,9 @@
|
||||
#include "mutex.h"
|
||||
#include "periph/gpio.h"
|
||||
#include "periph/hwrng.h"
|
||||
#ifdef MODULE_RANDOM
|
||||
#include "random.h"
|
||||
#endif
|
||||
#include "xtimer.h"
|
||||
|
||||
#include "target.h"
|
||||
@ -50,7 +53,7 @@ uint8_t hal_getrand(void)
|
||||
hwnrg_read((char *)&res, sizeof(res));
|
||||
return res;
|
||||
#elif defined(MODULE_RANDOM)
|
||||
return (uint8_t)(genrand_uint32() % UINT8_MAX);
|
||||
return (uint8_t)(random_uint32() % UINT8_MAX);
|
||||
#else
|
||||
return 4; /* keeping the meme alive ;-) */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user