![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Functions to get randomness. More...
#include <freeradius-devel/build.h>#include <freeradius-devel/missing.h>#include <stddef.h>#include <stdint.h>
Include dependency graph for rand.h:Go to the source code of this file.
Data Structures | |
| struct | fr_fast_rand_t |
| Smaller fast random number generator. More... | |
| struct | fr_randctx |
Functions | |
| uint32_t | fr_fast_rand (fr_fast_rand_t *ctx) |
| void | fr_isaac (fr_randctx *ctx) |
| void | fr_isaac_init (fr_randctx *ctx, int flag) |
| uint32_t | fr_rand (void) |
| Return a 32-bit random number. | |
| void | fr_rand_buffer (void *start, size_t length) |
| void | fr_rand_init (void) |
| void | fr_rand_mixin (void const *, size_t) |
| Mix data into the random number generator. | |
| void | fr_rand_str (uint8_t *out, size_t len, char class) |
| Generate a random string. | |
Functions to get randomness.
Definition in file rand.h.
| struct fr_fast_rand_t |
| struct fr_randctx |
| uint32_t fr_fast_rand | ( | fr_fast_rand_t * | ctx | ) |
| void fr_isaac | ( | fr_randctx * | ctx | ) |
| void fr_isaac_init | ( | fr_randctx * | ctx, |
| int | flag | ||
| ) |
| uint32_t fr_rand | ( | void | ) |
| void fr_rand_buffer | ( | void * | start, |
| size_t | length | ||
| ) |
| void fr_rand_init | ( | void | ) |
| void fr_rand_mixin | ( | void const * | data, |
| size_t | size | ||
| ) |
Generate a random string.
| [out] | out | Where to write the string |
| [in] | len | Length of the output buffer. |
| [in] | class | to pick characters from (see function body). |
Definition at line 163 of file rand.c.
Here is the caller graph for this function:
1.9.8