E:/fip/workspaces/fip/source/framework/fip_rand.c File Reference

Random Number Generation. More...


Functions

void fip_srand (uint32_t seed)
 Seed the random number with a certain seed.
uint8_t fip_rand8Limited (uint8_t max)
 Get a random number between uniformly distributed between 0 to max.
uint8_t fip_rand8 (void)
 Get a random number between uniformly distributed between 0 to UINT8_MAX.
uint16_t fip_rand16Limited (uint16_t max)
 Get a random number between uniformly distributed between 0 to max.
uint16_t fip_rand16 (void)
 Get a random number between uniformly distributed between 0 to UINT16_MAX.
uint32_t fip_rand32Limited (uint32_t max)
 Get a random number between uniformly distributed between 0 to max.
uint32_t fip_rand32 (void)
 Get a random number between uniformly distributed between 0 to UINT32_MAX.

Variables

static uint32_t fip_random_number = 1u
 This number stores the 32-bit random number in use on the system.
static uint32_t *const fip_random_number32 = (uint32_t *)&fip_random_number
 Access the 32-bit random number as a 32-bit number (for read only).
static uint16_t *const fip_random_number16 = (uint16_t *)&fip_random_number
 Access the 32-bit random number as a 16-bit number (for read only).
static uint8_t *const fip_random_number8 = (uint8_t *)&fip_random_number
 Access the 32-bit random number as a 8-bit number (for read only).


Detailed Description

Random Number Generation.

Author:
Colin O'Flynn

Generated on Wed Dec 8 13:00:19 2010 for FIP by  doxygen 1.5.7.1