Wixel SDK
random_from_sernum.c File Reference
#include <cc2511_map.h>
#include <random.h>
#include <board.h>

Go to the source code of this file.


void randomSeedFromSerialNumber (void)

Detailed Description

See random.h for more information about this library.

Definition in file random_from_sernum.c.

Function Documentation

void randomSeedFromSerialNumber ( void  )

Uses the randomly-assigned 4-byte serial number of the Wixel to initialize the state of the random number generator. This function throws away all of the previous state of the random number generator. You will generally want to call this function once at the beginning of your program.

Definition at line 9 of file random_from_sernum.c.