random.c

Random numbers are used in ACN occasionally. random.c and random.h attempt to ensure that numbers differ from component to component and from run to run.

Summary
random.cRandom numbers are used in ACN occasionally.
Functions
randomizeInitialize the random library function to generate a fresh sequence that is unlikely to match other components and unlikely to repeat on another run.

Functions

randomize

void randomize(bool force)

Initialize the random library function to generate a fresh sequence that is unlikely to match other components and unlikely to repeat on another run.

For Linux we use /dev/urandom to seed the generator.

void randomize(bool force)
Initialize the random library function to generate a fresh sequence that is unlikely to match other components and unlikely to repeat on another run.
Close