shrub/include/ent/ent.h

20 lines
341 B
C
Raw Normal View History

2018-12-27 09:03:44 +03:00
#ifndef _ENT_H
#define _ENT_H
#include <stddef.h>
2018-12-27 21:27:28 +03:00
#include <ent/config.h>
2018-12-27 09:03:44 +03:00
/*
* 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);
#endif /* _ENT_H */