blob: e838d61b5bc8c675002a61bb2e18967433196bd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include <stddef.h>
/*
Fills buf with high-quality entropy.
buflen is the number of bytes, no greater than 256.
Returns 0 on success. On failure, returns -1 and sets errno to
indicate the error.
*/
int ent_getentropy(void* buf, size_t buflen);
|