#include "random.h"
#include <stdbool.h>
#include <stdint.h>
#include "debug.h"
Go to the source code of this file.
Functions | |
static void | swap_byte (uint8_t *a, uint8_t *b) |
void | random_init (unsigned seed) |
void | random_bytes (void *buf_, size_t size) |
unsigned long | random_ulong (void) |
Variables | |
static uint8_t | s [256] |
static uint8_t | s_i |
static uint8_t | s_j |
static bool | inited |
void random_bytes | ( | void * | buf_, | |
size_t | size | |||
) |
Definition at line 55 of file random.c.
References buf, inited, random_init(), s, s_i, s_j, and swap_byte().
Referenced by main(), random_ulong(), seq_test(), and test_main().
void random_init | ( | unsigned | seed | ) |
Definition at line 35 of file random.c.
References inited, s, s_i, s_j, and swap_byte().
Referenced by consume_some_resources_and_die(), main(), parse_options(), random_bytes(), and test_main().
unsigned long random_ulong | ( | void | ) |
Definition at line 79 of file random.c.
References random_bytes().
Referenced by consume_some_resources_and_die(), expand(), pick_pivot(), shuffle(), test(), and write_some_bytes().
Definition at line 26 of file random.c.
Referenced by arc4_crypt(), arc4_init(), random_bytes(), and random_init().
bool inited [static] |
Definition at line 18 of file random.c.
Referenced by __vprintf(), arc4_crypt(), arc4_init(), check_and_free(), cksum(), hash_string(), power_off(), random_bytes(), random_init(), and udiv64().