diff options
author | polwex <polwex@sortug.com> | 2025-10-05 21:56:51 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-10-05 21:56:51 +0700 |
commit | fcedfddf00b3f994e4f4e40332ac7fc192c63244 (patch) | |
tree | 51d38e62c7bdfcc5f9a5e9435fe820c93cfc9a3d /vere/pkg/ent/ent.h |
claude is gud
Diffstat (limited to 'vere/pkg/ent/ent.h')
-rw-r--r-- | vere/pkg/ent/ent.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vere/pkg/ent/ent.h b/vere/pkg/ent/ent.h new file mode 100644 index 0000000..e838d61 --- /dev/null +++ b/vere/pkg/ent/ent.h @@ -0,0 +1,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); |