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

Files

file  random-arch.c
 Random driver for the nRF.
 
file  random.c
 This file overrides os/lib/random.c.
 

Functions

unsigned short random_rand (void)
 Generates a new random number.
 
void random_init (unsigned short seed)
 Initialize the random number generator.
 

Detailed Description

Function Documentation

◆ random_init()

void random_init ( unsigned short seed)

Initialize the random number generator.

Seed the cc2538 random number generator.

Parameters
seedIgnored if NRF_RNG is present.

Definition at line 69 of file random-arch.c.

◆ random_rand()

unsigned short random_rand ( void )

Generates a new random number.

Generates a new random number using the cc2538 RNG.

Returns
The random number.

Definition at line 59 of file random-arch.c.