random.h File Reference

Go to the source code of this file.

Functions

void random_generator_init (void)
 This function performs to initials random generator post. More...
 
unsigned int rand (void)
 This function performs to get one random number. More...
 
void generateRandomNum (int len, unsigned char *data)
 This function performs to get a serial of random number. More...
 

Function Documentation

◆ random_generator_init()

void random_generator_init ( void  )

This function performs to initials random generator post.

Parameters
[in]none.
Returns
none.

◆ rand()

unsigned int rand ( void  )

This function performs to get one random number.

Parameters
[in]none.
Returns
the value of one random number.

◆ generateRandomNum()

void generateRandomNum ( int  len,
unsigned char *  data 
)

This function performs to get a serial of random number.

Parameters
[in]len-the length of random number
[in]data- the first address of buffer store random number in
Returns
the result of a serial of random number.