diff options
Diffstat (limited to 'emulator/le.c')
-rw-r--r-- | emulator/le.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/emulator/le.c b/emulator/le.c index f8f313f2c..7656a657c 100644 --- a/emulator/le.c +++ b/emulator/le.c @@ -20,7 +20,6 @@ #include <sys/socket.h> #include <sys/un.h> #include <sys/uio.h> -#include <sys/random.h> #include <time.h> #include "lib/bluetooth.h" @@ -509,7 +508,7 @@ static unsigned int get_adv_delay(void) /* The advertising delay is a pseudo-random value with a range * of 0 ms to 10 ms generated for each advertising event. */ - if (getrandom(&val, sizeof(val), 0) < 0) { + if (util_getrandom(&val, sizeof(val), 0) < 0) { /* If it fails to get the random number, use a static value */ val = 5; } |