1
0
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:
Martine Lenders 2017-11-23 18:54:36 +01:00
parent ba4631798c
commit a785ee5212
No known key found for this signature in database
GPG Key ID: 8E97A9FE55F25D62

View File

@ -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