You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
514 B

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
uintptr_t uwurandom_size(void);
uintptr_t uwurandom_align(void);
/**
* # Safety
*
* `buf` should point to a valid region of memory with the minimum size of `uwurandom_size` and align of `uwurandom_align`.
*/
void create_uwurandom(const uint8_t (*seed)[16],
void *buf);
/**
* # Safety
*
* `uwurandom` should point to memory initialized by `create_uwurandom`.
*/
char step_uwurandom(void *uwurandom);