Contiki-NG
Random driver

Files

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

Functions

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

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.

Definition at line 70 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 60 of file random-arch.c.