summaryrefslogtreecommitdiff
path: root/src/random.h
blob: 4b31abb900cf8cfe2e1bb81a6bcc5b6444878ad9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct Random;


int
urandom_bytes(const size_t n, uint8_t (*const addr)[]);

int
random_new(const struct Random **out);

int
random_free(const struct Random **r);

int
random_generate(
	const struct Random *r,
	const size_t length,
	uint8_t (*const out)[]
);