Contiki-NG
Loading...
Searching...
No Matches

Wrapper around rand() using the hardware RNG for seeding. More...

#include <stdlib.h>
#include <nrfx_rng.h>

Go to the source code of this file.

Functions

unsigned short random_rand (void)
 Generates a new random number using the cc2538 RNG.
 
void random_init (unsigned short seed)
 Initialize the libc random number generator from the hardware RNG.
 

Detailed Description

Wrapper around rand() using the hardware RNG for seeding.

This file overrides os/lib/random.c.

Definition in file random.c.