|
Electroneum
|
#include <assert.h>#include <stddef.h>#include <string.h>#include "hash-ops.h"#include "initializer.h"#include "random.h"#include <err.h>#include <errno.h>#include <fcntl.h>#include <stdlib.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>
Functions | |
| static void | generate_system_random_bytes (size_t n, void *result) |
| FINALIZER (deinit_random) | |
| INITIALIZER (init_random) | |
| void | generate_random_bytes_not_thread_safe (size_t n, void *result) |
Variables | |
| static union hash_state | state |
| static volatile int | curstate |
| FINALIZER | ( | deinit_random | ) |
| void generate_random_bytes_not_thread_safe | ( | size_t | n, |
| void * | result | ||
| ) |
|
static |
| INITIALIZER | ( | init_random | ) |
|
static |
|
static |