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/tests.c |
claude is gud
Diffstat (limited to 'vere/pkg/ent/tests.c')
-rw-r--r-- | vere/pkg/ent/tests.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vere/pkg/ent/tests.c b/vere/pkg/ent/tests.c new file mode 100644 index 0000000..90b6ca0 --- /dev/null +++ b/vere/pkg/ent/tests.c @@ -0,0 +1,20 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include "ent.h" + +int main(void) { + char buf[256] = {0}; + + if (0 != ent_getentropy(buf, sizeof(buf))) { + perror("getentropy"); + exit(1); + } + + for (int i = 0; i < sizeof buf; i++) { + printf("%02hhx", buf[i]); + } + + puts(""); +} |