Function Prototypes:tfKernelGetRandom

Jump to: navigation, search

Table of Contents >> Compile Time Macros


ttUser32Bit tfKernelGetRandom (void);


Function Description

This function is available only if the user has defined TM_USE_KERNEL_RNG in trsystem.h. If this is true, the user must define this function and have it return a random 32-bit value.


Returns

  • ttUser32Bit
    A 32-bit random number.


Example:

 
#ifdef TM_USE_KERNEL_RNG
ttUser32Bit tfKernelGetRandom (void)
{
    ttUser32Bit retVal;
 
    //Insert code to get the random 32-bit number from your hadware here.
 
    return retVal;
}
#endif /* TM_USE_KERNEL_RNG */
 

Table of Contents >> Compile Time Macros