Typedefs |
| typedef int | R_RAND_ENT_FUNC_T (unsigned char *data, unsigned int len) |
| | Creates user-defined random entropy collection routines for seeding a random object. More...
|
Functions |
| R_RANDOM* | R_rand_new (R_RANDOM *rnd) |
| | Allocates a new random object. More...
|
| void | R_rand_free (R_RANDOM *rnd) |
| | Deallocates a random object. More...
|
| int | R_rand_add_entropy (R_RANDOM *rnd, int num) |
| | Adds entropy to the Random Number Generator (RNG) specified by rnd. More...
|
| R_RANDOM* | R_rand_get_default (void) |
| | Returns a pointer to a static copy of the default random method. More...
|
| int | R_rand_set_default (R_RANDOM *rnd) |
| | Sets the default callbacks for the Random Number Generator (RNG). More...
|
| int | R_rand_seed (R_RANDOM *rnd, unsigned char *buffer, int num) |
| | Adds additional seed to the R_RANDOM rnd by adding num Bytes from buffer. More...
|
| int | R_rand_bytes (R_RANDOM *rnd, unsigned char *buffer, int num) |
| | Places num random Bytes into a buffer buffer. More...
|
| int | R_rand_entropy_count (R_RANDOM *rnd, unsigned long *num) |
| | Returns the approximate number of random bits added to the system. More...
|
| int | R_rand_set_entropy_func (R_RANDOM *rnd, R_RAND_ENT_FUNC_T *entropy_func) |
| | Sets a random entropy collection function to be used in a random object. More...
|
| R_RAND_ENT_FUNC_T* | R_rand_get_entropy_func (R_RANDOM *rnd) |
| | Retrieves a random entropy collection function used by a random object. More...
|
| int | R_rand_load_file (R_RANDOM *rnd, char *filename, long size) |
| | Reads data from the named file in sections of size until the end of the file is reached. More...
|
| int | R_rand_write_file (R_RANDOM *rnd, char *filename) |
| | Writes data in sections of size BUFSIZE to the file filename. More...
|
| char* | R_rand_file_name (char *buffer, int size) |
| | Returns a default name for the location of a rand file. More...
|