tfRandSeed

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trproto.h>


void tfRandSeed (
unsigned short seed1,
unsigned short seed2
);


Function Description

Seed Treck's software random number generator with the specified seeds. After this function is called, the user should call either tfRandNew() or tfTimerExecute() to generate new vectors with these seeds.


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