b28a6bcf29
Signed-off-by: kaguya3311 <kaguya3311@national.shitposting.agency>
12 lines
311 B
C
12 lines
311 B
C
#pragma once
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#define GRND_NONBLOCK 0x0001
|
|
#define GRND_RANDOM 0x0002
|
|
#define GRND_INSECURE 0x0004
|
|
|
|
void random_init(void);
|
|
int random_read(void* buf, size_t len);
|
|
int random_write(const void* buf, size_t len);
|
|
int getrandom(void *buf, size_t buflen, unsigned int flags); |