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

Structure of PRNG drivers. More...

#include <os/lib/random.h>

Data Fields

void(* seed )(uint64_t seed)
 Seeds the PRNG with a seed.
 
uint_fast16_t(* rand )(void)
 Generates a 16-bit pseudo-random number.
 

Detailed Description

Structure of PRNG drivers.

Definition at line 61 of file random.h.

Field Documentation

◆ rand

uint_fast16_t(* random_prng::rand) (void)

Generates a 16-bit pseudo-random number.

Returns
The 16-bit pseudo-random number.

Definition at line 73 of file random.h.

◆ seed

void(* random_prng::seed) (uint64_t seed)

Seeds the PRNG with a seed.

Parameters
seedThe seed.

Definition at line 67 of file random.h.