tfRandNew

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trproto.h>


void tfRandNew (void);


Function Description

Generate new random number vectors from the current random number seeds. In most cases this function is called following a call to tfRandSeed() to provide Treck's random number generator with new seeds.


Note Note: It is not necessary to follow a call to tfRandSeed() with a call to this function if tfTimerExecute() has already been called.


Treck recommends that you use a hardware random number generator if you have access to one. Simply define TM_USE_KERNEL_RNG in your trsystem.h file and write up an implementation for tfKernelGetRandom().


Table of Contents >> Programmer's Reference